mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-03-01 01:40:35 -05:00
Merge branch 'ext-virtual-keyboard-v1' into 'master'
Implement ext-virtual-keyboard-v1 See merge request wlroots/wlroots!4682
This commit is contained in:
commit
23046763ba
7 changed files with 523 additions and 1 deletions
|
|
@ -11,7 +11,7 @@
|
|||
#include "types/wlr_seat.h"
|
||||
#include "util/global.h"
|
||||
|
||||
#define SEAT_VERSION 9
|
||||
#define SEAT_VERSION 10
|
||||
|
||||
static void seat_handle_get_pointer(struct wl_client *client,
|
||||
struct wl_resource *seat_resource, uint32_t id) {
|
||||
|
|
|
|||
|
|
@ -78,6 +78,12 @@ void wlr_seat_keyboard_send_key(struct wlr_seat *wlr_seat, uint32_t time,
|
|||
continue;
|
||||
}
|
||||
|
||||
int version = wl_resource_get_version(resource);
|
||||
if (state == WL_KEYBOARD_KEY_STATE_REPEATED &&
|
||||
version < WL_KEYBOARD_KEY_STATE_REPEATED_SINCE_VERSION) {
|
||||
continue;
|
||||
}
|
||||
|
||||
wl_keyboard_send_key(resource, serial, time, key, state);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue