mirror of
				https://codeberg.org/dwl/dwl.git
				synced 2025-10-31 20:14:20 +00:00 
			
		
		
		
	Merge pull request #122 from Sevz17/set-tiled-on-map
before set tiled verify if client is xdg-shell, then set tile
This commit is contained in:
		
						commit
						56d93898ea
					
				
							
								
								
									
										8
									
								
								dwl.c
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								dwl.c
									
									
									
									
									
								
							| @ -1304,9 +1304,17 @@ mapnotify(struct wl_listener *listener, void *data) | |||||||
| 	c->geom.width += 2 * c->bw; | 	c->geom.width += 2 * c->bw; | ||||||
| 	c->geom.height += 2 * c->bw; | 	c->geom.height += 2 * c->bw; | ||||||
| 
 | 
 | ||||||
|  | #ifdef XWAYLAND | ||||||
|  | 	if (c->type == XDGShell) { | ||||||
|  | 		/* Tell the client not to try anything fancy */ | ||||||
|  | 		wlr_xdg_toplevel_set_tiled(c->surface.xdg, WLR_EDGE_TOP | | ||||||
|  | 				WLR_EDGE_BOTTOM | WLR_EDGE_LEFT | WLR_EDGE_RIGHT); | ||||||
|  | 	} | ||||||
|  | #else | ||||||
| 	/* Tell the client not to try anything fancy */ | 	/* Tell the client not to try anything fancy */ | ||||||
| 	wlr_xdg_toplevel_set_tiled(c->surface.xdg, WLR_EDGE_TOP | | 	wlr_xdg_toplevel_set_tiled(c->surface.xdg, WLR_EDGE_TOP | | ||||||
| 			WLR_EDGE_BOTTOM | WLR_EDGE_LEFT | WLR_EDGE_RIGHT); | 			WLR_EDGE_BOTTOM | WLR_EDGE_LEFT | WLR_EDGE_RIGHT); | ||||||
|  | #endif | ||||||
| 
 | 
 | ||||||
| 	/* Set initial monitor, tags, floating status, and focus */ | 	/* Set initial monitor, tags, floating status, and focus */ | ||||||
| 	applyrules(c); | 	applyrules(c); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Devin J. Pohly
						Devin J. Pohly