mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	Open new views on output where cursor is
This commit is contained in:
		
							parent
							
								
									eaed1a3cab
								
							
						
					
					
						commit
						69f0f68cc2
					
				
					 4 changed files with 16 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -159,6 +159,9 @@ map(struct view *view)
 | 
			
		|||
 | 
			
		||||
	if (!view->been_mapped) {
 | 
			
		||||
		view_maximize(view, false);
 | 
			
		||||
		struct wlr_box *box = output_box_from_cursor_coords(view->server);
 | 
			
		||||
		view->x = box->x;
 | 
			
		||||
		view->y = box->y;
 | 
			
		||||
		view_center(view);
 | 
			
		||||
		view->been_mapped = true;
 | 
			
		||||
	}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue