mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	A menu must be shown on a client, so always give the client when adding
the items. Also fix mode menus.
This commit is contained in:
		
							
								
								
									
										4
									
								
								popup.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								popup.c
									
									
									
									
									
								
							@@ -566,10 +566,10 @@ popup_key_cb(struct client *c, void *data, struct key_event *event)
 | 
			
		||||
menu:
 | 
			
		||||
	pd->menu = menu_create("");
 | 
			
		||||
	if (pd->flags & POPUP_INTERNAL) {
 | 
			
		||||
		menu_add_items(pd->menu, popup_internal_menu_items, NULL, NULL,
 | 
			
		||||
		menu_add_items(pd->menu, popup_internal_menu_items, NULL, c,
 | 
			
		||||
		    NULL);
 | 
			
		||||
	} else
 | 
			
		||||
		menu_add_items(pd->menu, popup_menu_items, NULL, NULL, NULL);
 | 
			
		||||
		menu_add_items(pd->menu, popup_menu_items, NULL, c, NULL);
 | 
			
		||||
	if (m->x >= (pd->menu->width + 4) / 2)
 | 
			
		||||
		x = m->x - (pd->menu->width + 4) / 2;
 | 
			
		||||
	else
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user