fix posible NULL-dereference in wl_surface.commit handler
This commit is contained in:
		
							
								
								
									
										2
									
								
								dwl.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								dwl.c
									
									
									
									
									
								
							@@ -731,7 +731,7 @@ commitnotify(struct wl_listener *listener, void *data)
 | 
			
		||||
{
 | 
			
		||||
	Client *c = wl_container_of(listener, c, commit);
 | 
			
		||||
 | 
			
		||||
	if (client_surface(c)->mapped)
 | 
			
		||||
	if (client_surface(c)->mapped && c->mon)
 | 
			
		||||
		resize(c, c->geom, (c->isfloating && !c->isfullscreen));
 | 
			
		||||
 | 
			
		||||
	/* mark a pending resize as completed */
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user