diff options
| author | Leonardo Hernández Hernández <leohdz172@proton.me> | 2024-08-09 21:35:21 -0600 | 
|---|---|---|
| committer | Leonardo Hernández Hernández <leohdz172@proton.me> | 2024-08-27 23:09:08 -0600 | 
| commit | d4ad37354e9ae8d475f8de9300903f8dd19e0f9b (patch) | |
| tree | b75a14a5a7bddcb5355f799c3ac1026ceb49f8e6 /dwl.c | |
| parent | 5db05e82bd7d1f6bf3cb0ce1ddd07952f06e57f8 (diff) | |
update comment about first fields of Client and LayerSurface order
Diffstat (limited to '')
| -rw-r--r-- | dwl.c | 14 | 
1 files changed, 8 insertions, 6 deletions
| @@ -106,15 +106,18 @@ typedef struct {  typedef struct Monitor Monitor;  typedef struct { -	/* Must keep these three elements in this order */ +	/* Must keep this field first */  	unsigned int type; /* XDGShell or X11* */ -	struct wlr_box geom; /* layout-relative, includes border */ +  	Monitor *mon;  	struct wlr_scene_tree *scene;  	struct wlr_scene_rect *border[4]; /* top, bottom, left, right */  	struct wlr_scene_tree *scene_surface;  	struct wl_list link;  	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 {  		struct wlr_xdg_surface *xdg;  		struct wlr_xwayland_surface *xwayland; @@ -129,8 +132,6 @@ typedef struct {  	struct wl_listener fullscreen;  	struct wl_listener set_decoration_mode;  	struct wl_listener destroy_decoration; -	struct wlr_box prev; /* layout-relative, includes border */ -	struct wlr_box bounds;  #ifdef XWAYLAND  	struct wl_listener activate;  	struct wl_listener associate; @@ -166,10 +167,11 @@ typedef struct {  } KeyboardGroup;  typedef struct { -	/* Must keep these three elements in this order */ +	/* Must keep this field first */  	unsigned int type; /* LayerShell */ -	struct wlr_box geom; +  	Monitor *mon; +	struct wlr_box geom;  	struct wlr_scene_tree *scene;  	struct wlr_scene_tree *popups;  	struct wlr_scene_layer_surface_v1 *scene_layer; | 
