mirror of
https://github.com/swaywm/sway.git
synced 2026-02-17 22:05:53 -05:00
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.
This commit is contained in:
parent
5411ed4ef0
commit
b762f455d9
6 changed files with 28 additions and 39 deletions
|
|
@ -21,6 +21,7 @@
|
|||
#include <wlr/types/wlr_xdg_shell.h>
|
||||
#include "config.h"
|
||||
#include "list.h"
|
||||
#include "sway/desktop/idle_inhibit_v1.h"
|
||||
#if HAVE_XWAYLAND
|
||||
#include "sway/xwayland.h"
|
||||
#endif
|
||||
|
|
@ -53,7 +54,7 @@ struct sway_server {
|
|||
|
||||
struct wlr_idle *idle;
|
||||
struct wlr_idle_notifier_v1 *idle_notifier_v1;
|
||||
struct sway_idle_inhibit_manager_v1 *idle_inhibit_manager_v1;
|
||||
struct sway_idle_inhibit_manager_v1 idle_inhibit_manager_v1;
|
||||
|
||||
struct wlr_layer_shell_v1 *layer_shell;
|
||||
struct wl_listener layer_shell_surface;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue