mirror of
				https://github.com/cage-kiosk/cage.git
				synced 2025-10-29 05:40:19 -04:00 
			
		
		
		
	 2d4b7a4e23
			
		
	
	
		2d4b7a4e23
		
	
	
	
	
		
			
			For xwayland we must listen on associate/dissociate to set up and tear down the map/unmap event handlers instead of during surface create/destroy.
		
			
				
	
	
		
			24 lines
		
	
	
	
		
			620 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
	
		
			620 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #ifndef CG_XWAYLAND_H
 | |
| #define CG_XWAYLAND_H
 | |
| 
 | |
| #include <wayland-server-core.h>
 | |
| #include <wlr/xwayland.h>
 | |
| 
 | |
| #include "view.h"
 | |
| 
 | |
| struct cg_xwayland_view {
 | |
| 	struct cg_view view;
 | |
| 	struct wlr_xwayland_surface *xwayland_surface;
 | |
| 	struct wl_listener destroy;
 | |
| 	struct wl_listener associate;
 | |
| 	struct wl_listener dissociate;
 | |
| 	struct wl_listener unmap;
 | |
| 	struct wl_listener map;
 | |
| 	struct wl_listener request_fullscreen;
 | |
| };
 | |
| 
 | |
| struct cg_xwayland_view *xwayland_view_from_view(struct cg_view *view);
 | |
| bool xwayland_view_should_manage(struct cg_view *view);
 | |
| void handle_xwayland_surface_new(struct wl_listener *listener, void *data);
 | |
| 
 | |
| #endif
 |