aboutsummaryrefslogtreecommitdiff
path: root/server.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2025-07-30 10:23:39 +0000
committerDaniel Eklöf <daniel@ekloef.se>2025-07-30 10:36:32 +0000
commit6eedc88d70520456fbb89db2600e762e722fe313 (patch)
tree0dbf5de4a27cc824fe8c22a907e6cdfb397c692f /server.h
parentslave: remove more environment variables set by other terminals (diff)
server: sigusr1/2: update conf object with the "new" theme
When sending SIGUSR1/SIGUSR2 to a server process, all currently running client instances change their theme. But before this patch, all future instances used the original theme. With this patch, the server owned config object is updated with the selected theme, thus making new instances use the same theme as well.
Diffstat (limited to 'server.h')
-rw-r--r--server.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/server.h b/server.h
index 50797540..6adfe7c6 100644
--- a/server.h
+++ b/server.h
@@ -6,6 +6,9 @@
#include "wayland.h"
struct server;
-struct server *server_init(const struct config *conf, struct fdm *fdm,
+struct server *server_init(struct config *conf, struct fdm *fdm,
struct reaper *reaper, struct wayland *wayl);
void server_destroy(struct server *server);
+
+void server_global_theme_switch_to_1(struct server *server);
+void server_global_theme_switch_to_2(struct server *server);