mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-03-06 01:40:52 -05:00
rootston: add support for wlr_input_timestamps_v1
This commit is contained in:
parent
ab3a760874
commit
dcb38e7f1c
7 changed files with 49 additions and 25 deletions
|
|
@ -5,8 +5,9 @@
|
|||
#include <wayland-server.h>
|
||||
#include <wlr/backend/session.h>
|
||||
#include <wlr/types/wlr_input_device.h>
|
||||
#include <wlr/types/wlr_pointer_constraints_v1.h>
|
||||
#include <wlr/types/wlr_input_timestamps_v1.h>
|
||||
#include <wlr/types/wlr_pointer.h>
|
||||
#include <wlr/types/wlr_pointer_constraints_v1.h>
|
||||
#include <wlr/util/log.h>
|
||||
#include <xkbcommon/xkbcommon.h>
|
||||
#include "rootston/bindings.h"
|
||||
|
|
@ -236,6 +237,10 @@ void roots_keyboard_handle_key(struct roots_keyboard *keyboard,
|
|||
|
||||
if (!handled) {
|
||||
wlr_seat_set_keyboard(keyboard->seat->seat, keyboard->device);
|
||||
wlr_input_timestamps_manager_v1_send_keyboard_timestamp(
|
||||
keyboard->seat->input->server->desktop->input_timestamps_manager,
|
||||
keyboard->seat->seat, (event->time_msec / 1000.0),
|
||||
event->time_nsec % 1000000000);
|
||||
wlr_seat_keyboard_notify_key(keyboard->seat->seat, event->time_msec,
|
||||
event->keycode, event->state);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue