mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	xwayland-unmanaged: fix dereference NULL pointer bug
Discovered when right-clicking names in hexchat
This commit is contained in:
		
							parent
							
								
									c0f369aafb
								
							
						
					
					
						commit
						e289100a54
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -64,7 +64,7 @@ unmanaged_handle_map(struct wl_listener *listener, void *data)
 | 
				
			||||||
	struct wlr_scene_node *parent, *node;
 | 
						struct wlr_scene_node *parent, *node;
 | 
				
			||||||
	struct view *view = parent_view(unmanaged->server, xsurface);
 | 
						struct view *view = parent_view(unmanaged->server, xsurface);
 | 
				
			||||||
	if (!view || !view->scene_node) {
 | 
						if (!view || !view->scene_node) {
 | 
				
			||||||
		parent = &view->server->unmanaged_tree->node;
 | 
							parent = &unmanaged->server->unmanaged_tree->node;
 | 
				
			||||||
	} else {
 | 
						} else {
 | 
				
			||||||
		lx -= view->x;
 | 
							lx -= view->x;
 | 
				
			||||||
		ly -= view->y;
 | 
							ly -= view->y;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue