mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Check for next_focus before assert
This commit is contained in:
		
							parent
							
								
									6e6b0decd9
								
							
						
					
					
						commit
						464ec44b00
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -183,7 +183,7 @@ void cursor_send_pointer_motion(struct sway_cursor *cursor, uint32_t time_msec,
 | 
			
		|||
			if (!do_mouse_focus) {
 | 
			
		||||
				struct sway_container *next_focus = seat_get_focus_inactive(
 | 
			
		||||
						cursor->seat, p);
 | 
			
		||||
				if(!sway_assert(next_focus->type == C_VIEW,
 | 
			
		||||
				if(next_focus && !sway_assert(next_focus->type == C_VIEW,
 | 
			
		||||
							"focus inactive container is not a view")) {
 | 
			
		||||
					return;
 | 
			
		||||
				}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue