From 0ba5a7fd907d9cd746c3163d9336bdbeba18b8b7 Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Wed, 2 Oct 2024 05:54:12 +0100 Subject: [PATCH] wm: fix build on 32-bit systems Force uint64_t to be aligned to 8-bytes even on 32-bit systems, so we don't need a special case for them. Fixes #1346 Signed-off-by: Yuxuan Shui --- src/wm/wm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wm/wm.h b/src/wm/wm.h index 421cd7a7b9..994521920d 100644 --- a/src/wm/wm.h +++ b/src/wm/wm.h @@ -63,7 +63,7 @@ enum wm_tree_change_type { typedef struct wm_treeid { /// The generation of the window ID. This is used to detect if the window ID is /// reused. Inherited from the wm_tree at cr - uint64_t gen; + alignas(8) uint64_t gen; /// The X window ID. xcb_window_t x;