mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	container: set fullscreen mode before attempting focus
This commit is contained in:
		
							parent
							
								
									5f1fe33d36
								
							
						
					
					
						commit
						d1c4ed1867
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -994,6 +994,7 @@ static void container_fullscreen_workspace(struct sway_container *con) {
 | 
				
			||||||
	bool enable = true;
 | 
						bool enable = true;
 | 
				
			||||||
	set_fullscreen_iterator(con, &enable);
 | 
						set_fullscreen_iterator(con, &enable);
 | 
				
			||||||
	container_for_each_child(con, set_fullscreen_iterator, &enable);
 | 
						container_for_each_child(con, set_fullscreen_iterator, &enable);
 | 
				
			||||||
 | 
						con->fullscreen_mode = FULLSCREEN_WORKSPACE;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	con->saved_x = con->x;
 | 
						con->saved_x = con->x;
 | 
				
			||||||
	con->saved_y = con->y;
 | 
						con->saved_y = con->y;
 | 
				
			||||||
| 
						 | 
					@ -1017,7 +1018,6 @@ static void container_fullscreen_workspace(struct sway_container *con) {
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	con->fullscreen_mode = FULLSCREEN_WORKSPACE;
 | 
					 | 
				
			||||||
	container_end_mouse_operation(con);
 | 
						container_end_mouse_operation(con);
 | 
				
			||||||
	ipc_event_window(con, "fullscreen_mode");
 | 
						ipc_event_window(con, "fullscreen_mode");
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue