mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	view/xwayland: avoid focusing views that don't want focus
XWayland views can self-declare that they don't want keyboard focus via the ICCCM WM_HINTS property. Most of the logic is already in place to avoid giving focus to such views (e.g. taskbars). Add a couple of missing pieces to make this work: - Hook up view_isfocusable() to look at WM_HINTS for XWayland views - Adjust desktop_focus_topmost_mapped_view() to skip unfocusable views
This commit is contained in:
		
							parent
							
								
									d503370a77
								
							
						
					
					
						commit
						7e72bf975f
					
				
					 10 changed files with 29 additions and 13 deletions
				
			
		| 
						 | 
				
			
			@ -289,7 +289,7 @@ workspaces_switch_to(struct workspace *target, bool update_focus)
 | 
			
		|||
	if (update_focus) {
 | 
			
		||||
		struct view *view = server->focused_view;
 | 
			
		||||
		if (!view || !view_is_always_on_top(view)) {
 | 
			
		||||
			desktop_focus_topmost_mapped_view(server);
 | 
			
		||||
			desktop_focus_topmost_view(server);
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue