aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-01-10 14:17:19 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-01-26 18:32:06 +0000
commit77186d16e8f1cf0e1035cbc34a5436c7a5533cf5 (patch)
treee5c5378689c29ad8ed7fa4b5373b70655d429e5b
parentMerge branch 'strip-control-characters-from-pasted-text' (diff)
wayland: pack booleans in the “pending” configure struct
-rw-r--r--wayland.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/wayland.h b/wayland.h
index 5ebc8a7e..cd8320c3 100644
--- a/wayland.h
+++ b/wayland.h
@@ -378,15 +378,15 @@ struct wl_window {
bool is_tiled_right;
bool is_tiled; /* At least one of is_tiled_{top,bottom,left,right} is true */
struct {
- bool is_activated;
- bool is_fullscreen;
- bool is_maximized;
- bool is_tiled_top;
- bool is_tiled_bottom;
- bool is_tiled_left;
- bool is_tiled_right;
int width;
int height;
+ uint8_t is_activated:1;
+ uint8_t is_fullscreen:1;
+ uint8_t is_maximized:1;
+ uint8_t is_tiled_top:1;
+ uint8_t is_tiled_bottom:1;
+ uint8_t is_tiled_left:1;
+ uint8_t is_tiled_right:1;
} configure;
};