check toplevel resources
it's just a aesthetic change
This commit is contained in:
		
							
								
								
									
										2
									
								
								dwl.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								dwl.c
									
									
									
									
									
								
							@@ -1577,7 +1577,7 @@ maximizenotify(struct wl_listener *listener, void *data)
 | 
			
		||||
	 * protocol version
 | 
			
		||||
	 * wlr_xdg_surface_schedule_configure() is used to send an empty reply. */
 | 
			
		||||
	Client *c = wl_container_of(listener, c, maximize);
 | 
			
		||||
	if (wl_resource_get_version(c->surface.xdg->resource)
 | 
			
		||||
	if (wl_resource_get_version(c->surface.xdg->toplevel->resource)
 | 
			
		||||
			< XDG_TOPLEVEL_WM_CAPABILITIES_SINCE_VERSION)
 | 
			
		||||
		wlr_xdg_surface_schedule_configure(c->surface.xdg);
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user