mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	xwayland: remove "try to focus on parent surface" logic
This was apparently to fix an Intellij focus issue, but I don't see any issues with Intellij currently, and the logic is wrong when the parent XWayland surface doesn't want focus (e.g. an XWayland panel with a focusable applications menu).
This commit is contained in:
		
							parent
							
								
									9e3785f8cd
								
							
						
					
					
						commit
						4eb34f97de
					
				
					 1 changed files with 0 additions and 10 deletions
				
			
		| 
						 | 
				
			
			@ -62,16 +62,6 @@ handle_map(struct wl_listener *listener, void *data)
 | 
			
		|||
static void
 | 
			
		||||
focus_next_surface(struct server *server, struct wlr_xwayland_surface *xsurface)
 | 
			
		||||
{
 | 
			
		||||
	/*
 | 
			
		||||
	 * Try to focus on parent surface
 | 
			
		||||
	 * This seems to fix JetBrains/Intellij window focus issues
 | 
			
		||||
	 */
 | 
			
		||||
	if (xsurface->parent && xsurface->parent->surface
 | 
			
		||||
			&& wlr_xwayland_or_surface_wants_focus(xsurface->parent)) {
 | 
			
		||||
		seat_focus_surface(&server->seat, xsurface->parent->surface);
 | 
			
		||||
		return;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	/* Try to focus on last created unmanaged xwayland surface */
 | 
			
		||||
	struct xwayland_unmanaged *u;
 | 
			
		||||
	struct wl_list *list = &server->unmanaged_surfaces;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue