mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
cursor+keyboard: chase wlroots master
Use wlr_input_device from input device base. Use wlr_keyboard where possible.
This commit is contained in:
parent
29021dad6a
commit
581a2bb2f1
2 changed files with 10 additions and 11 deletions
|
|
@ -643,8 +643,8 @@ cursor_button(struct wl_listener *listener, void *data)
|
|||
}
|
||||
|
||||
/* get modifiers */
|
||||
struct wlr_input_device *device = seat->keyboard_group->input_device;
|
||||
uint32_t modifiers = wlr_keyboard_get_modifiers(device->keyboard);
|
||||
struct wlr_keyboard *keyboard = &seat->keyboard_group->keyboard;
|
||||
uint32_t modifiers = wlr_keyboard_get_modifiers(keyboard);
|
||||
|
||||
/* handle _release_ */
|
||||
if (event->state == WLR_BUTTON_RELEASED) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue