mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Merge pull request #2565 from ianyfan/fix-splashscreen-crash
Fix crash when a splash screen opens on an empty workspace
This commit is contained in:
		
						commit
						15c57f476f
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -346,7 +346,8 @@ static void render_titlebar(struct sway_output *output,
 | 
			
		|||
	float output_scale = output->wlr_output->scale;
 | 
			
		||||
	enum sway_container_layout layout = state->parent->current.layout;
 | 
			
		||||
	list_t *children = state->parent->current.children;
 | 
			
		||||
	bool is_last_child = children->items[children->length - 1] == con;
 | 
			
		||||
	bool is_last_child = children->length == 0 ||
 | 
			
		||||
		children->items[children->length - 1] == con;
 | 
			
		||||
	double output_x = output->swayc->current.swayc_x;
 | 
			
		||||
	double output_y = output->swayc->current.swayc_y;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue