mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Fix crash when clicking certain surfaces
cont was NULL.
This commit is contained in:
		
							parent
							
								
									354731f161
								
							
						
					
					
						commit
						2f1b84a0f3
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -570,7 +570,7 @@ void dispatch_cursor_button(struct sway_cursor *cursor,
 | 
			
		|||
			cursor->cursor->x, cursor->cursor->y, &surface, &sx, &sy);
 | 
			
		||||
 | 
			
		||||
	// Handle mouse bindings
 | 
			
		||||
	bool on_border = find_resize_edge(cont, cursor) != WLR_EDGE_NONE;
 | 
			
		||||
	bool on_border = cont && (find_resize_edge(cont, cursor) != WLR_EDGE_NONE);
 | 
			
		||||
	bool on_contents = !on_border && surface;
 | 
			
		||||
	bool on_titlebar = !on_border && !surface;
 | 
			
		||||
	struct wlr_keyboard *keyboard = wlr_seat_get_keyboard(cursor->seat->wlr_seat);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue