|  |  | @ -705,6 +705,7 @@ static void xcb_init_wm(struct wlr_xwm *xwm) { | 
			
		
	
		
		
			
				
					
					|  |  |  | void wlr_xwayland_surface_activate(struct wlr_xwayland *wlr_xwayland, |  |  |  | void wlr_xwayland_surface_activate(struct wlr_xwayland *wlr_xwayland, | 
			
		
	
		
		
			
				
					
					|  |  |  | 		struct wlr_xwayland_surface *surface) { |  |  |  | 		struct wlr_xwayland_surface *surface) { | 
			
		
	
		
		
			
				
					
					|  |  |  | 	struct wlr_xwm *xwm = wlr_xwayland->xwm; |  |  |  | 	struct wlr_xwm *xwm = wlr_xwayland->xwm; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 	if (surface) { | 
			
		
	
		
		
			
				
					
					|  |  |  | 		xcb_client_message_event_t m = {0}; |  |  |  | 		xcb_client_message_event_t m = {0}; | 
			
		
	
		
		
			
				
					
					|  |  |  | 		m.response_type = XCB_CLIENT_MESSAGE; |  |  |  | 		m.response_type = XCB_CLIENT_MESSAGE; | 
			
		
	
		
		
			
				
					
					|  |  |  | 		m.format = 32; |  |  |  | 		m.format = 32; | 
			
		
	
	
		
		
			
				
					|  |  | @ -718,6 +719,11 @@ void wlr_xwayland_surface_activate(struct wlr_xwayland *wlr_xwayland, | 
			
		
	
		
		
			
				
					
					|  |  |  | 			surface->window_id, XCB_CURRENT_TIME); |  |  |  | 			surface->window_id, XCB_CURRENT_TIME); | 
			
		
	
		
		
			
				
					
					|  |  |  | 		xcb_configure_window_checked(xwm->xcb_conn, surface->window_id, |  |  |  | 		xcb_configure_window_checked(xwm->xcb_conn, surface->window_id, | 
			
		
	
		
		
			
				
					
					|  |  |  | 			XCB_CONFIG_WINDOW_STACK_MODE, (uint32_t[]){XCB_STACK_MODE_ABOVE}); |  |  |  | 			XCB_CONFIG_WINDOW_STACK_MODE, (uint32_t[]){XCB_STACK_MODE_ABOVE}); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 	} else { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 		wlr_log(L_DEBUG, "Deactivating xwayland"); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 		xcb_set_input_focus_checked(xwm->xcb_conn, XCB_INPUT_FOCUS_NONE, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 			-1, XCB_CURRENT_TIME); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 	} | 
			
		
	
		
		
			
				
					
					|  |  |  | 	xcb_flush(xwm->xcb_conn); |  |  |  | 	xcb_flush(xwm->xcb_conn); | 
			
		
	
		
		
			
				
					
					|  |  |  | } |  |  |  | } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
	
		
		
			
				
					|  |  | 
 |