mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	xdg-shell: set view position before view_maximize()
...on first map so that view->unmaximized_geometry is known even if an xdg-shell application started in maximized mode. Fixes issue #305 Reported-by: @01micko
This commit is contained in:
		
							parent
							
								
									8b45ff6829
								
							
						
					
					
						commit
						a1cf5b3e96
					
				
					 1 changed files with 1 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -301,6 +301,7 @@ xdg_toplevel_view_map(struct view *view)
 | 
			
		|||
			ssd_create(view);
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		position_xdg_toplevel_view(view);
 | 
			
		||||
		if (!view->fullscreen && requested->fullscreen) {
 | 
			
		||||
			view_set_fullscreen(view, true,
 | 
			
		||||
				requested->fullscreen_output);
 | 
			
		||||
| 
						 | 
				
			
			@ -308,9 +309,6 @@ xdg_toplevel_view_map(struct view *view)
 | 
			
		|||
			view_maximize(view, true);
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		if (!view->maximized && !view->fullscreen) {
 | 
			
		||||
			position_xdg_toplevel_view(view);
 | 
			
		||||
		}
 | 
			
		||||
		view_discover_output(view);
 | 
			
		||||
 | 
			
		||||
		view->been_mapped = true;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue