mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	menu: slightly slide menus opened from buttons
This commit slides menus opened from buttons (with atCursor="no") to the left by menu.border.width. This makes the location of the window menu look more natural, especially when it's opened from the window icon in the left corner of the titlebar.
This commit is contained in:
		
							parent
							
								
									64bb57afa2
								
							
						
					
					
						commit
						2ade6a1e85
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -678,6 +678,7 @@ show_menu(struct server *server, struct view *view, struct cursor_context *ctx,
 | 
			
		|||
			assert(ctx->node);
 | 
			
		||||
			int ly;
 | 
			
		||||
			wlr_scene_node_coords(ctx->node, &x, &ly);
 | 
			
		||||
			x -= server->theme->menu_border_width;
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue