Update wlroots and libliftoff
This commit is contained in:
parent
131514ecb8
commit
fbc6bd0c08
3 changed files with 6 additions and 4 deletions
|
@ -23,8 +23,10 @@ extern "C" {
|
|||
#include <wlr/backend/headless.h>
|
||||
#include <wlr/backend/multi.h>
|
||||
#include <wlr/backend/libinput.h>
|
||||
#include <wlr/interfaces/wlr_pointer.h>
|
||||
#include <wlr/render/wlr_renderer.h>
|
||||
#include <wlr/types/wlr_keyboard.h>
|
||||
#include <wlr/types/wlr_pointer.h>
|
||||
#include <wlr/types/wlr_touch.h>
|
||||
#include <wlr/xwayland.h>
|
||||
#include <wlr/util/log.h>
|
||||
#undef static
|
||||
|
@ -135,7 +137,7 @@ static void wlserver_handle_key(struct wl_listener *listener, void *data)
|
|||
xkb_keycode_t keycode = event->keycode + 8;
|
||||
xkb_keysym_t keysym = xkb_state_key_get_one_sym(keyboard->device->keyboard->xkb_state, keycode);
|
||||
|
||||
if (wlserver.wlr.session && event->state == WLR_KEY_PRESSED && keysym >= XKB_KEY_XF86Switch_VT_1 && keysym <= XKB_KEY_XF86Switch_VT_12) {
|
||||
if (wlserver.wlr.session && event->state == WL_KEYBOARD_KEY_STATE_PRESSED && keysym >= XKB_KEY_XF86Switch_VT_1 && keysym <= XKB_KEY_XF86Switch_VT_12) {
|
||||
unsigned vt = keysym - XKB_KEY_XF86Switch_VT_1 + 1;
|
||||
wlr_session_change_vt(wlserver.wlr.session, vt);
|
||||
return;
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 24abeb923f52176808461e664776b56d52960d3e
|
||||
Subproject commit c9e42e3c149fa8db94c12f285ebf67c68e45549d
|
|
@ -1 +1 @@
|
|||
Subproject commit 238d1c078fb03338e9f271d98f7bf6b1fc399285
|
||||
Subproject commit da2a2169344ef2dbe0dc31fd013caf30880d6aff
|
Loading…
Reference in a new issue