mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	move window raise/focus on click from hard-coded logic to default mouse binding
This commit is contained in:
		
							parent
							
								
									11512d30af
								
							
						
					
					
						commit
						a9f11c5fc7
					
				
					 2 changed files with 4 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -475,6 +475,10 @@ static struct {
 | 
			
		|||
	{ "Root", "Left", "Press", "ShowMenu", "root-menu"},
 | 
			
		||||
	{ "Root", "Right", "Press", "ShowMenu", "root-menu"},
 | 
			
		||||
	{ "Root", "Middle", "Press", "ShowMenu", "root-menu"},
 | 
			
		||||
	{ "Client", "Left", "Press", "Focus", NULL},
 | 
			
		||||
	{ "Client", "Left", "Press", "Raise", NULL},
 | 
			
		||||
	{ "Titlebar", "Left", "Press", "Focus", NULL},
 | 
			
		||||
	{ "Titlebar", "Left", "Press", "Raise", NULL},
 | 
			
		||||
	{ NULL, NULL, NULL, NULL, NULL },
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -589,11 +589,6 @@ cursor_button(struct wl_listener *listener, void *data)
 | 
			
		|||
		return;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	/* Handle _press_ on view */
 | 
			
		||||
	desktop_focus_and_activate_view(&server->seat, view);
 | 
			
		||||
	desktop_raise_view(view);
 | 
			
		||||
	damage_all_outputs(server);
 | 
			
		||||
 | 
			
		||||
	/* Resize if SSD resize edge is clicked */
 | 
			
		||||
	resize_edges = ssd_resize_edges(view_area);
 | 
			
		||||
	if (resize_edges) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue