mirror of
				https://codeberg.org/dwl/dwl.git
				synced 2025-11-03 09:01:45 -05:00 
			
		
		
		
	update comment about first fields of Client and LayerSurface order
This commit is contained in:
		
							parent
							
								
									36633c3c1e
								
							
						
					
					
						commit
						b0a93257ab
					
				
					 1 changed files with 8 additions and 6 deletions
				
			
		
							
								
								
									
										14
									
								
								dwl.c
									
										
									
									
									
								
							
							
						
						
									
										14
									
								
								dwl.c
									
										
									
									
									
								
							| 
						 | 
					@ -106,15 +106,18 @@ typedef struct {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
typedef struct Monitor Monitor;
 | 
					typedef struct Monitor Monitor;
 | 
				
			||||||
typedef struct {
 | 
					typedef struct {
 | 
				
			||||||
	/* Must keep these three elements in this order */
 | 
						/* Must keep this field first */
 | 
				
			||||||
	unsigned int type; /* XDGShell or X11* */
 | 
						unsigned int type; /* XDGShell or X11* */
 | 
				
			||||||
	struct wlr_box geom; /* layout-relative, includes border */
 | 
					
 | 
				
			||||||
	Monitor *mon;
 | 
						Monitor *mon;
 | 
				
			||||||
	struct wlr_scene_tree *scene;
 | 
						struct wlr_scene_tree *scene;
 | 
				
			||||||
	struct wlr_scene_rect *border[4]; /* top, bottom, left, right */
 | 
						struct wlr_scene_rect *border[4]; /* top, bottom, left, right */
 | 
				
			||||||
	struct wlr_scene_tree *scene_surface;
 | 
						struct wlr_scene_tree *scene_surface;
 | 
				
			||||||
	struct wl_list link;
 | 
						struct wl_list link;
 | 
				
			||||||
	struct wl_list flink;
 | 
						struct wl_list flink;
 | 
				
			||||||
 | 
						struct wlr_box geom; /* layout-relative, includes border */
 | 
				
			||||||
 | 
						struct wlr_box prev; /* layout-relative, includes border */
 | 
				
			||||||
 | 
						struct wlr_box bounds; /* only width and height are used */
 | 
				
			||||||
	union {
 | 
						union {
 | 
				
			||||||
		struct wlr_xdg_surface *xdg;
 | 
							struct wlr_xdg_surface *xdg;
 | 
				
			||||||
		struct wlr_xwayland_surface *xwayland;
 | 
							struct wlr_xwayland_surface *xwayland;
 | 
				
			||||||
| 
						 | 
					@ -129,8 +132,6 @@ typedef struct {
 | 
				
			||||||
	struct wl_listener fullscreen;
 | 
						struct wl_listener fullscreen;
 | 
				
			||||||
	struct wl_listener set_decoration_mode;
 | 
						struct wl_listener set_decoration_mode;
 | 
				
			||||||
	struct wl_listener destroy_decoration;
 | 
						struct wl_listener destroy_decoration;
 | 
				
			||||||
	struct wlr_box prev; /* layout-relative, includes border */
 | 
					 | 
				
			||||||
	struct wlr_box bounds;
 | 
					 | 
				
			||||||
#ifdef XWAYLAND
 | 
					#ifdef XWAYLAND
 | 
				
			||||||
	struct wl_listener activate;
 | 
						struct wl_listener activate;
 | 
				
			||||||
	struct wl_listener associate;
 | 
						struct wl_listener associate;
 | 
				
			||||||
| 
						 | 
					@ -166,10 +167,11 @@ typedef struct {
 | 
				
			||||||
} KeyboardGroup;
 | 
					} KeyboardGroup;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
typedef struct {
 | 
					typedef struct {
 | 
				
			||||||
	/* Must keep these three elements in this order */
 | 
						/* Must keep this field first */
 | 
				
			||||||
	unsigned int type; /* LayerShell */
 | 
						unsigned int type; /* LayerShell */
 | 
				
			||||||
	struct wlr_box geom;
 | 
					
 | 
				
			||||||
	Monitor *mon;
 | 
						Monitor *mon;
 | 
				
			||||||
 | 
						struct wlr_box geom;
 | 
				
			||||||
	struct wlr_scene_tree *scene;
 | 
						struct wlr_scene_tree *scene;
 | 
				
			||||||
	struct wlr_scene_tree *popups;
 | 
						struct wlr_scene_tree *popups;
 | 
				
			||||||
	struct wlr_scene_layer_surface_v1 *scene_layer;
 | 
						struct wlr_scene_layer_surface_v1 *scene_layer;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue