mirror of
				https://codeberg.org/dwl/dwl.git
				synced 2025-10-30 19:44:17 +00:00 
			
		
		
		
	restack xwayland surface on focusclient()
This commit is contained in:
		
							parent
							
								
									d071a899f3
								
							
						
					
					
						commit
						3a4b7d104f
					
				
							
								
								
									
										9
									
								
								dwl.c
									
									
									
									
									
								
							
							
						
						
									
										9
									
								
								dwl.c
									
									
									
									
									
								
							| @ -1135,6 +1135,15 @@ focusclient(Client *c, int lift) | |||||||
| 		return; | 		return; | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
|  | #ifdef XWAYLAND | ||||||
|  | 	/* This resolves an issue where the last spawned xwayland client
 | ||||||
|  | 	 * receives all pointer activity. | ||||||
|  | 	 */ | ||||||
|  | 	if (c->type == X11Managed) | ||||||
|  | 		wlr_xwayland_surface_restack(c->surface.xwayland, NULL, | ||||||
|  | 				XCB_STACK_MODE_ABOVE); | ||||||
|  | #endif | ||||||
|  | 
 | ||||||
| 	/* Have a client, so focus its top-level wlr_surface */ | 	/* Have a client, so focus its top-level wlr_surface */ | ||||||
| 	kb = wlr_seat_get_keyboard(seat); | 	kb = wlr_seat_get_keyboard(seat); | ||||||
| 	wlr_seat_keyboard_notify_enter(seat, client_surface(c), | 	wlr_seat_keyboard_notify_enter(seat, client_surface(c), | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Leonardo Hernández Hernández
						Leonardo Hernández Hernández