From 54bd69680a5088fcf1a7ade3c5d409bc9c2abeb0 Mon Sep 17 00:00:00 2001 From: Stu Black Date: Tue, 9 Sep 2025 22:37:37 -0400 Subject: [PATCH] Make bitfields into regular fields so we can mirror WAppIcon in Rust. --- src/appicon.c | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/appicon.c b/src/appicon.c index 9e94b961..462b7551 100644 --- a/src/appicon.c +++ b/src/appicon.c @@ -75,24 +75,24 @@ struct WAppIcon { Window main_window; struct WDock *dock; /* In which dock is docked. */ struct _AppSettingsPanel *panel; /* Settings Panel */ - unsigned int docked:1; - unsigned int omnipresent:1; /* If omnipresent when + unsigned int docked; + unsigned int omnipresent; /* If omnipresent when * docked in clip */ - unsigned int attracted:1; /* If it was attracted by the clip */ - unsigned int launching:1; - unsigned int running:1; /* application is already running */ - unsigned int relaunching:1; /* launching 2nd instance */ - unsigned int forced_dock:1; - unsigned int auto_launch:1; /* launch app on startup */ - unsigned int remote_start:1; - unsigned int updated:1; - unsigned int editing:1; /* editing docked icon */ - unsigned int drop_launch:1; /* launching from drop action */ - unsigned int paste_launch:1; /* launching from paste action */ - unsigned int destroyed:1; /* appicon was destroyed */ - unsigned int buggy_app:1; /* do not make dock rely on hints + unsigned int attracted; /* If it was attracted by the clip */ + unsigned int launching; + unsigned int running; /* application is already running */ + unsigned int relaunching; /* launching 2nd instance */ + unsigned int forced_dock; + unsigned int auto_launch; /* launch app on startup */ + unsigned int remote_start; + unsigned int updated; + unsigned int editing; /* editing docked icon */ + unsigned int drop_launch; /* launching from drop action */ + unsigned int paste_launch; /* launching from paste action */ + unsigned int destroyed; /* appicon was destroyed */ + unsigned int buggy_app; /* do not make dock rely on hints * set by app */ - unsigned int lock:1; /* do not allow to be destroyed */ + unsigned int lock; /* do not allow to be destroyed */ }; /******** Accessors/mutators ********/