diff options
Diffstat (limited to 'sway/server.c')
-rw-r--r-- | sway/server.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sway/server.c b/sway/server.c index bd107617..3456931c 100644 --- a/sway/server.c +++ b/sway/server.c | |||
@@ -10,6 +10,7 @@ | |||
10 | #include <wlr/types/wlr_export_dmabuf_v1.h> | 10 | #include <wlr/types/wlr_export_dmabuf_v1.h> |
11 | #include <wlr/types/wlr_gamma_control.h> | 11 | #include <wlr/types/wlr_gamma_control.h> |
12 | #include <wlr/types/wlr_idle.h> | 12 | #include <wlr/types/wlr_idle.h> |
13 | #include <wlr/types/wlr_idle_inhibit_v1.h> | ||
13 | #include <wlr/types/wlr_layer_shell.h> | 14 | #include <wlr/types/wlr_layer_shell.h> |
14 | #include <wlr/types/wlr_linux_dmabuf.h> | 15 | #include <wlr/types/wlr_linux_dmabuf.h> |
15 | #include <wlr/types/wlr_primary_selection.h> | 16 | #include <wlr/types/wlr_primary_selection.h> |
@@ -63,6 +64,11 @@ bool server_init(struct sway_server *server) { | |||
63 | wlr_xdg_output_manager_create(server->wl_display, | 64 | wlr_xdg_output_manager_create(server->wl_display, |
64 | root_container.sway_root->output_layout); | 65 | root_container.sway_root->output_layout); |
65 | 66 | ||
67 | server->idle_inhibit = wlr_idle_inhibit_v1_create(server->wl_display); | ||
68 | wl_signal_add(&server->idle_inhibit->events.new_inhibitor, | ||
69 | &server->new_idle_inhibitor_v1); | ||
70 | server->new_idle_inhibitor_v1.notify = handle_idle_inhibitor_v1; | ||
71 | |||
66 | server->layer_shell = wlr_layer_shell_create(server->wl_display); | 72 | server->layer_shell = wlr_layer_shell_create(server->wl_display); |
67 | wl_signal_add(&server->layer_shell->events.new_surface, | 73 | wl_signal_add(&server->layer_shell->events.new_surface, |
68 | &server->layer_shell_surface); | 74 | &server->layer_shell_surface); |