mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	view: fix impl->set_fullscreen() argument bug
This commit is contained in:
		
							parent
							
								
									645a8e46a6
								
							
						
					
					
						commit
						7bfe350f25
					
				
					 3 changed files with 3 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -160,8 +160,7 @@ struct view_impl {
 | 
			
		|||
	const char *(*get_string_prop)(struct view *view, const char *prop);
 | 
			
		||||
	void (*map)(struct view *view);
 | 
			
		||||
	void (*move)(struct view *view, double x, double y);
 | 
			
		||||
	void (*set_fullscreen)(struct view *view, bool fullscreen,
 | 
			
		||||
		struct wlr_output *wlr_output);
 | 
			
		||||
	void (*set_fullscreen)(struct view *view, bool fullscreen);
 | 
			
		||||
	void (*unmap)(struct view *view);
 | 
			
		||||
	void (*maximize)(struct view *view, bool maximize);
 | 
			
		||||
};
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -115,7 +115,7 @@ view_set_fullscreen(struct view *view, bool fullscreen,
 | 
			
		|||
		return;
 | 
			
		||||
	}
 | 
			
		||||
	if (view->impl->set_fullscreen) {
 | 
			
		||||
		view->impl->set_fullscreen(view, fullscreen, wlr_output);
 | 
			
		||||
		view->impl->set_fullscreen(view, fullscreen);
 | 
			
		||||
	}
 | 
			
		||||
	if (view->toplevel_handle) {
 | 
			
		||||
		wlr_foreign_toplevel_handle_v1_set_fullscreen(
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -226,8 +226,7 @@ maximize(struct view *view, bool maximized)
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
static void
 | 
			
		||||
set_fullscreen(struct view *view, bool fullscreen,
 | 
			
		||||
		struct wlr_output *wlr_output)
 | 
			
		||||
set_fullscreen(struct view *view, bool fullscreen)
 | 
			
		||||
{
 | 
			
		||||
	wlr_xwayland_surface_set_fullscreen(view->xwayland_surface, fullscreen);
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue