mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Fix damage on swaybar when view requests to exit fullscreen
Fixes #2191
This commit is contained in:
		
							parent
							
								
									f611a4f9b1
								
							
						
					
					
						commit
						d467452e5e
					
				
					 3 changed files with 6 additions and 6 deletions
				
			
		| 
						 | 
					@ -222,8 +222,8 @@ static void handle_request_fullscreen(struct wl_listener *listener, void *data)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	view_set_fullscreen(view, e->fullscreen);
 | 
						view_set_fullscreen(view, e->fullscreen);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	struct sway_container *ws = container_parent(view->swayc, C_WORKSPACE);
 | 
						struct sway_container *output = container_parent(view->swayc, C_OUTPUT);
 | 
				
			||||||
	arrange_and_commit(ws);
 | 
						arrange_and_commit(output);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static void handle_unmap(struct wl_listener *listener, void *data) {
 | 
					static void handle_unmap(struct wl_listener *listener, void *data) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -217,8 +217,8 @@ static void handle_request_fullscreen(struct wl_listener *listener, void *data)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	view_set_fullscreen(view, e->fullscreen);
 | 
						view_set_fullscreen(view, e->fullscreen);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	struct sway_container *ws = container_parent(view->swayc, C_WORKSPACE);
 | 
						struct sway_container *output = container_parent(view->swayc, C_OUTPUT);
 | 
				
			||||||
	arrange_and_commit(ws);
 | 
						arrange_and_commit(output);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static void handle_unmap(struct wl_listener *listener, void *data) {
 | 
					static void handle_unmap(struct wl_listener *listener, void *data) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -379,8 +379,8 @@ static void handle_request_fullscreen(struct wl_listener *listener, void *data)
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	view_set_fullscreen(view, xsurface->fullscreen);
 | 
						view_set_fullscreen(view, xsurface->fullscreen);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	struct sway_container *ws = container_parent(view->swayc, C_WORKSPACE);
 | 
						struct sway_container *output = container_parent(view->swayc, C_OUTPUT);
 | 
				
			||||||
	arrange_and_commit(ws);
 | 
						arrange_and_commit(output);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static void handle_set_title(struct wl_listener *listener, void *data) {
 | 
					static void handle_set_title(struct wl_listener *listener, void *data) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue