From 77186d16e8f1cf0e1035cbc34a5436c7a5533cf5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Sun, 10 Jan 2021 15:17:19 +0100 Subject: [PATCH] =?UTF-8?q?wayland:=20pack=20booleans=20in=20the=20?= =?UTF-8?q?=E2=80=9Cpending=E2=80=9D=20configure=20struct?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wayland.h | 14 +++++++------- 1 file 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; };