mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	rootston: don't try to maximize fullscreen surfaces
It doesn't make much sense and actually breaks stuff when using layer-shell (fullscreen window gets resized, but it's still fullscreen, leading to black bars where the shell layers are behind).
This commit is contained in:
		
							parent
							
								
									132290aeb4
								
							
						
					
					
						commit
						de56ea6b1e
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -213,6 +213,10 @@ static struct wlr_output *view_get_output(struct roots_view *view) {
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
void view_arrange_maximized(struct roots_view *view) {
 | 
			
		||||
	if (view->fullscreen_output != NULL) {
 | 
			
		||||
		return;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	struct wlr_box view_box;
 | 
			
		||||
	view_get_box(view, &view_box);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -232,7 +236,7 @@ void view_arrange_maximized(struct roots_view *view) {
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
void view_maximize(struct roots_view *view, bool maximized) {
 | 
			
		||||
	if (view->maximized == maximized) {
 | 
			
		||||
	if (view->maximized == maximized || view->fullscreen_output != NULL) {
 | 
			
		||||
		return;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue