aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/server.h
diff options
context:
space:
mode:
authorLibravatar Simon Ser <contact@emersion.fr>2023-06-19 21:16:23 +0200
committerLibravatar Simon Ser <contact@emersion.fr>2023-06-23 12:32:38 +0200
commitb762f455d942e81e076a4a4d475fb9926372da16 (patch)
tree225c427277bc20279befc7381ad4766fe17a803f /include/sway/server.h
parentUse wlr_cursor_unset_image() (diff)
downloadsway-b762f455d942e81e076a4a4d475fb9926372da16.tar.gz
sway-b762f455d942e81e076a4a4d475fb9926372da16.tar.zst
sway-b762f455d942e81e076a4a4d475fb9926372da16.zip
idle-inhibit-v1: simplify with server global
We only have a single running server, no need to keep track of multiple server instances. Also no need to support multiple idle inhibit managers.
Diffstat (limited to 'include/sway/server.h')
-rw-r--r--include/sway/server.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/sway/server.h b/include/sway/server.h
index aaa8781b..0e4ec2be 100644
--- a/include/sway/server.h
+++ b/include/sway/server.h
@@ -21,6 +21,7 @@
21#include <wlr/types/wlr_xdg_shell.h> 21#include <wlr/types/wlr_xdg_shell.h>
22#include "config.h" 22#include "config.h"
23#include "list.h" 23#include "list.h"
24#include "sway/desktop/idle_inhibit_v1.h"
24#if HAVE_XWAYLAND 25#if HAVE_XWAYLAND
25#include "sway/xwayland.h" 26#include "sway/xwayland.h"
26#endif 27#endif
@@ -53,7 +54,7 @@ struct sway_server {
53 54
54 struct wlr_idle *idle; 55 struct wlr_idle *idle;
55 struct wlr_idle_notifier_v1 *idle_notifier_v1; 56 struct wlr_idle_notifier_v1 *idle_notifier_v1;
56 struct sway_idle_inhibit_manager_v1 *idle_inhibit_manager_v1; 57 struct sway_idle_inhibit_manager_v1 idle_inhibit_manager_v1;
57 58
58 struct wlr_layer_shell_v1 *layer_shell; 59 struct wlr_layer_shell_v1 *layer_shell;
59 struct wl_listener layer_shell_surface; 60 struct wl_listener layer_shell_surface;