mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	view: Fix positioning of initially-maximized XWayland views
map() in xwayland.c called ssd_create() but did not call view_apply_maximized_geometry() afterward, resulting in the decorations being displayed off-screen. Rather than calling view_apply_maximized_geometry() in more places, let's reuse the existing call in view_set_decorations(), and extend ssd_update_geometry() to call ssd_create() when needed.
This commit is contained in:
		
							parent
							
								
									0b6eca097d
								
							
						
					
					
						commit
						2995d0e8e0
					
				
					 3 changed files with 6 additions and 11 deletions
				
			
		| 
						 | 
				
			
			@ -303,11 +303,7 @@ xdg_toplevel_view_map(struct view *view)
 | 
			
		|||
		struct wlr_xdg_toplevel_requested *requested =
 | 
			
		||||
			&view->xdg_surface->toplevel->requested;
 | 
			
		||||
		foreign_toplevel_handle_create(view);
 | 
			
		||||
 | 
			
		||||
		view->ssd.enabled = has_ssd(view);
 | 
			
		||||
		if (view->ssd.enabled) {
 | 
			
		||||
			ssd_create(view);
 | 
			
		||||
		}
 | 
			
		||||
		view_set_decorations(view, has_ssd(view));
 | 
			
		||||
 | 
			
		||||
		position_xdg_toplevel_view(view);
 | 
			
		||||
		if (!view->fullscreen && requested->fullscreen) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue