mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	container: add inactive fullscreen to focus stack
When a container was being made fullscreen and it is on the focused workspace for a seat, focus was being set to the container. However, when the container was on a non-focused workspace, the focus stack wasn't being touched. When assigning a fullscreen container to a workspace or moving a fullscreen container to a different workspace, this would make it so the fullscreen container was never added to the focus stack for the workspace thus preventing access to the workspace. This adds the container to the top of the focus stack, behind the container on the focused workspace.
This commit is contained in:
		
							parent
							
								
									c3353bb273
								
							
						
					
					
						commit
						a4e4e21edf
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -958,6 +958,11 @@ static void container_fullscreen_workspace(struct sway_container *con) {
 | 
			
		|||
			focus_ws = seat_get_focused_workspace(seat);
 | 
			
		||||
			if (focus_ws == con->workspace) {
 | 
			
		||||
				seat_set_focus_container(seat, con);
 | 
			
		||||
			} else {
 | 
			
		||||
				struct sway_node *focus =
 | 
			
		||||
					seat_get_focus_inactive(seat, &root->node);
 | 
			
		||||
				seat_set_raw_focus(seat, &con->node);
 | 
			
		||||
				seat_set_raw_focus(seat, focus);
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue