mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	view: Call view_moved() immediately after map
At least for XWayland surfaces, handle_commit() is not always called after map(), and as a result, the scene-graph node is never positioned. Not sure 100% if the same can occur with XDG surfaces, but the extra view_moved() call should be harmless, so add it there too for consistency.
This commit is contained in:
		
							parent
							
								
									05b7afd05a
								
							
						
					
					
						commit
						b8096b1bab
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -307,7 +307,7 @@ xdg_toplevel_view_map(struct view *view)
 | 
			
		|||
			view_maximize(view, true);
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		view_discover_output(view);
 | 
			
		||||
		view_moved(view);
 | 
			
		||||
		view->been_mapped = true;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -340,7 +340,7 @@ map(struct view *view)
 | 
			
		|||
			view_center(view);
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		view_discover_output(view);
 | 
			
		||||
		view_moved(view);
 | 
			
		||||
		view->been_mapped = true;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue