mirror of
				https://codeberg.org/dwl/dwl.git
				synced 2025-10-30 19:44:17 +00:00 
			
		
		
		
	tell xwayland clients they're maximized
like we do to xdg clients when tiled state is not supported.
This commit is contained in:
		
							parent
							
								
									8206cc8889
								
							
						
					
					
						commit
						002c7d2204
					
				
							
								
								
									
										5
									
								
								client.h
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								client.h
									
									
									
									
									
								
							| @ -358,8 +358,11 @@ static inline void | |||||||
| client_set_tiled(Client *c, uint32_t edges) | client_set_tiled(Client *c, uint32_t edges) | ||||||
| { | { | ||||||
| #ifdef XWAYLAND | #ifdef XWAYLAND | ||||||
| 	if (client_is_x11(c)) | 	if (client_is_x11(c)) { | ||||||
|  | 		wlr_xwayland_surface_set_maximized(c->surface.xwayland, | ||||||
|  | 				edges != WLR_EDGE_NONE, edges != WLR_EDGE_NONE); | ||||||
| 		return; | 		return; | ||||||
|  |   } | ||||||
| #endif | #endif | ||||||
| 	if (wl_resource_get_version(c->surface.xdg->toplevel->resource) | 	if (wl_resource_get_version(c->surface.xdg->toplevel->resource) | ||||||
| 			>= XDG_TOPLEVEL_STATE_TILED_RIGHT_SINCE_VERSION) { | 			>= XDG_TOPLEVEL_STATE_TILED_RIGHT_SINCE_VERSION) { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Leonardo Hernández Hernández
						Leonardo Hernández Hernández