mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Use i3's dimensions for initial scratchpad views
See https://github.com/i3/i3/blob/master/src/scratchpad.c#L196-L197
This commit is contained in:
		
							parent
							
								
									17593ac559
								
							
						
					
					
						commit
						0f31323659
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -16,8 +16,8 @@ static swayc_t *fetch_view_from_scratchpad() {
 | 
			
		|||
		wlc_view_set_output(view->handle, swayc_active_output()->handle);
 | 
			
		||||
	}
 | 
			
		||||
	if (!view->is_floating) {
 | 
			
		||||
		view->width = swayc_active_workspace()->width/2;
 | 
			
		||||
		view->height = swayc_active_workspace()->height/2;
 | 
			
		||||
		view->width = swayc_active_workspace()->width * 0.5;
 | 
			
		||||
		view->height = swayc_active_workspace()->height * 0.75;
 | 
			
		||||
		view->x = (swayc_active_workspace()->width - view->width)/2;
 | 
			
		||||
		view->y = (swayc_active_workspace()->height - view->height)/2;
 | 
			
		||||
	}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue