mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	xdg: try to keep view on the same output in timeout case
This commit is contained in:
		
							parent
							
								
									9557091a1a
								
							
						
					
					
						commit
						508df093c4
					
				
					 1 changed files with 7 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -322,6 +322,13 @@ handle_configure_timeout(void *data)
 | 
			
		|||
			wlr_log(WLR_INFO, "using fallback position");
 | 
			
		||||
			view->pending.x = VIEW_FALLBACK_X;
 | 
			
		||||
			view->pending.y = VIEW_FALLBACK_Y;
 | 
			
		||||
			/* At least try to keep it on the same output */
 | 
			
		||||
			if (output_is_usable(view->output)) {
 | 
			
		||||
				struct wlr_box box =
 | 
			
		||||
					output_usable_area_in_layout_coords(view->output);
 | 
			
		||||
				view->pending.x += box.x;
 | 
			
		||||
				view->pending.y += box.y;
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		view->current.x = view->pending.x;
 | 
			
		||||
		view->current.y = view->pending.y;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue