mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	tree/arrange; Skip arranging disabled outputs
Disabled outputs might not have a geometry to arrange for, so skip the
arrange to avoid messing up the workspace geometry.
(cherry picked from f4a6b0395f)
			
			
This commit is contained in:
		
							parent
							
								
									2879260f79
								
							
						
					
					
						commit
						af86879462
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
					@ -314,6 +314,9 @@ void arrange_output(struct sway_output *output) {
 | 
				
			||||||
	if (config->reloading) {
 | 
						if (config->reloading) {
 | 
				
			||||||
		return;
 | 
							return;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
						if (!output->wlr_output->enabled) {
 | 
				
			||||||
 | 
							return;
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
	for (int i = 0; i < output->workspaces->length; ++i) {
 | 
						for (int i = 0; i < output->workspaces->length; ++i) {
 | 
				
			||||||
		struct sway_workspace *workspace = output->workspaces->items[i];
 | 
							struct sway_workspace *workspace = output->workspaces->items[i];
 | 
				
			||||||
		arrange_workspace(workspace);
 | 
							arrange_workspace(workspace);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue