diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-05-13 10:11:10 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-13 10:11:10 -0400 |
commit | 61aa0937a75d23c0f2a00a8cea52c08bf69164dd (patch) | |
tree | 5f2e7817313b657431870862d4059b62bcd2e396 /sway/input/keyboard.c | |
parent | 0c96d757d0d5d1762390dd119cbe344e8781c19f (diff) | |
parent | f40049b5cd8d0274a62399cbdd1f8fd0e7668be3 (diff) |
Merge pull request #1824 from snaggen/idle
DPMS and lock handling
Diffstat (limited to 'sway/input/keyboard.c')
-rw-r--r-- | sway/input/keyboard.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/input/keyboard.c b/sway/input/keyboard.c index dbf2ce01..c07557db 100644 --- a/sway/input/keyboard.c +++ b/sway/input/keyboard.c @@ -2,6 +2,7 @@ #include <limits.h> #include <wlr/backend/multi.h> #include <wlr/backend/session.h> +#include <wlr/types/wlr_idle.h> #include "sway/input/seat.h" #include "sway/input/keyboard.h" #include "sway/input/input-manager.h" @@ -330,6 +331,7 @@ static void handle_keyboard_key(struct wl_listener *listener, void *data) { struct wlr_seat *wlr_seat = keyboard->seat_device->sway_seat->wlr_seat; struct wlr_input_device *wlr_device = keyboard->seat_device->input_device->wlr_device; + wlr_idle_notify_activity(keyboard->seat_device->sway_seat->input->server->idle, wlr_seat); struct wlr_event_keyboard_key *event = data; xkb_keycode_t keycode = event->keycode + 8; |