mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Merge pull request #2580 from RyanDwyer/fix-focus-after-fullscreen
Restore focus correctly when closing a fullscreen view
This commit is contained in:
		
						commit
						85e95d5825
					
				
					 1 changed files with 2 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -168,11 +168,8 @@ static void handle_seat_node_destroy(struct wl_listener *listener, void *data) {
 | 
			
		|||
 | 
			
		||||
		// the structure change might have caused it to move up to the top of
 | 
			
		||||
		// the focus stack without sending focus notifications to the view
 | 
			
		||||
		if (seat_get_focus(seat) == next_focus) {
 | 
			
		||||
			seat_send_focus(next_focus, seat);
 | 
			
		||||
		} else {
 | 
			
		||||
			seat_set_focus(seat, next_focus);
 | 
			
		||||
		}
 | 
			
		||||
		seat_send_focus(next_focus, seat);
 | 
			
		||||
		seat_set_focus(seat, next_focus);
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue