diff options
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 @@ | |||
2 | #include <limits.h> | 2 | #include <limits.h> |
3 | #include <wlr/backend/multi.h> | 3 | #include <wlr/backend/multi.h> |
4 | #include <wlr/backend/session.h> | 4 | #include <wlr/backend/session.h> |
5 | #include <wlr/types/wlr_idle.h> | ||
5 | #include "sway/input/seat.h" | 6 | #include "sway/input/seat.h" |
6 | #include "sway/input/keyboard.h" | 7 | #include "sway/input/keyboard.h" |
7 | #include "sway/input/input-manager.h" | 8 | #include "sway/input/input-manager.h" |
@@ -330,6 +331,7 @@ static void handle_keyboard_key(struct wl_listener *listener, void *data) { | |||
330 | struct wlr_seat *wlr_seat = keyboard->seat_device->sway_seat->wlr_seat; | 331 | struct wlr_seat *wlr_seat = keyboard->seat_device->sway_seat->wlr_seat; |
331 | struct wlr_input_device *wlr_device = | 332 | struct wlr_input_device *wlr_device = |
332 | keyboard->seat_device->input_device->wlr_device; | 333 | keyboard->seat_device->input_device->wlr_device; |
334 | wlr_idle_notify_activity(keyboard->seat_device->sway_seat->input->server->idle, wlr_seat); | ||
333 | struct wlr_event_keyboard_key *event = data; | 335 | struct wlr_event_keyboard_key *event = data; |
334 | 336 | ||
335 | xkb_keycode_t keycode = event->keycode + 8; | 337 | xkb_keycode_t keycode = event->keycode + 8; |