mirror of
				https://github.com/labwc/labwc.git
				synced 2025-10-29 05:40:24 -04:00 
			
		
		
		
	 7ad5200f2e
			
		
	
	
		7ad5200f2e
		
	
	
	
	
		
			
			Made all header files to have LABWC_ prefix in include guard identifers. Converted from __LABWC_ in 35 include/ files. Converted from __LAB_ in 5 include/ files. Added LABWC prefix to 3 include/ files. Added include guards to 3 include/ files. The double underscores were removed since according to C standard those "are always reserved for any use".
		
			
				
	
	
		
			39 lines
		
	
	
	
		
			896 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			39 lines
		
	
	
	
		
			896 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /* SPDX-License-Identifier: GPL-2.0-only */
 | |
| #ifndef LABWC_LAYERS_H
 | |
| #define LABWC_LAYERS_H
 | |
| #include <wayland-server.h>
 | |
| #include <wlr/types/wlr_layer_shell_v1.h>
 | |
| 
 | |
| struct server;
 | |
| struct output;
 | |
| 
 | |
| struct lab_layer_surface {
 | |
| 	struct wlr_scene_layer_surface_v1 *scene_layer_surface;
 | |
| 	struct server *server;
 | |
| 
 | |
| 	bool mapped;
 | |
| 
 | |
| 	struct wl_listener map;
 | |
| 	struct wl_listener unmap;
 | |
| 	struct wl_listener surface_commit;
 | |
| 	struct wl_listener output_destroy;
 | |
| 	struct wl_listener node_destroy;
 | |
| 	struct wl_listener new_popup;
 | |
| };
 | |
| 
 | |
| struct lab_layer_popup {
 | |
| 	struct wlr_xdg_popup *wlr_popup;
 | |
| 	struct wlr_scene_tree *scene_tree;
 | |
| 
 | |
| 	/* To simplify moving popup nodes from the bottom to the top layer */
 | |
| 	struct wlr_box output_toplevel_sx_box;
 | |
| 
 | |
| 	struct wl_listener destroy;
 | |
| 	struct wl_listener new_popup;
 | |
| };
 | |
| 
 | |
| void layers_init(struct server *server);
 | |
| 
 | |
| void layers_arrange(struct output *output);
 | |
| 
 | |
| #endif /* LABWC_LAYERS_H */
 |