mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Merge pull request #2887 from RyanDwyer/bar-overlay
Put swaybar in overlay layer when using mode hide
This commit is contained in:
		
						commit
						c75098e96f
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -102,7 +102,7 @@ static void add_layer_surface(struct swaybar_output *output) {
 | 
				
			||||||
	bool hidden = strcmp(config->mode, "hide") == 0;
 | 
						bool hidden = strcmp(config->mode, "hide") == 0;
 | 
				
			||||||
	output->layer_surface = zwlr_layer_shell_v1_get_layer_surface(
 | 
						output->layer_surface = zwlr_layer_shell_v1_get_layer_surface(
 | 
				
			||||||
			bar->layer_shell, output->surface, output->output,
 | 
								bar->layer_shell, output->surface, output->output,
 | 
				
			||||||
			hidden ? ZWLR_LAYER_SHELL_V1_LAYER_TOP :
 | 
								hidden ? ZWLR_LAYER_SHELL_V1_LAYER_OVERLAY :
 | 
				
			||||||
			ZWLR_LAYER_SHELL_V1_LAYER_BOTTOM, "panel");
 | 
								ZWLR_LAYER_SHELL_V1_LAYER_BOTTOM, "panel");
 | 
				
			||||||
	assert(output->layer_surface);
 | 
						assert(output->layer_surface);
 | 
				
			||||||
	zwlr_layer_surface_v1_add_listener(output->layer_surface,
 | 
						zwlr_layer_surface_v1_add_listener(output->layer_surface,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue