aboutsummaryrefslogtreecommitdiff
path: root/sway/server.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-05-13 10:11:10 -0400
committerGitHub <noreply@github.com>2018-05-13 10:11:10 -0400
commit61aa0937a75d23c0f2a00a8cea52c08bf69164dd (patch)
tree5f2e7817313b657431870862d4059b62bcd2e396 /sway/server.c
parent0c96d757d0d5d1762390dd119cbe344e8781c19f (diff)
parentf40049b5cd8d0274a62399cbdd1f8fd0e7668be3 (diff)
Merge pull request #1824 from snaggen/idle
DPMS and lock handling
Diffstat (limited to 'sway/server.c')
-rw-r--r--sway/server.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/server.c b/sway/server.c
index 8c41ee87..ccc215eb 100644
--- a/sway/server.c
+++ b/sway/server.c
@@ -16,6 +16,7 @@
#include <wlr/types/wlr_xcursor_manager.h>
#include <wlr/types/wlr_xdg_output.h>
#include <wlr/types/wlr_wl_shell.h>
+#include <wlr/types/wlr_idle.h>
#include <wlr/util/log.h>
// TODO WLR: make Xwayland optional
#include <wlr/xwayland.h>
@@ -61,6 +62,7 @@ bool server_init(struct sway_server *server) {
server->data_device_manager =
wlr_data_device_manager_create(server->wl_display);
+ server->idle = wlr_idle_create(server->wl_display);
wlr_screenshooter_create(server->wl_display);
wlr_gamma_control_manager_create(server->wl_display);
wlr_primary_selection_device_manager_create(server->wl_display);