mirror of
https://github.com/labwc/labwc.git
synced 2025-10-31 22:25:34 -04:00
And make mousebind handlers use that one. Also remove keyboard_any_modifiers_pressed() and replace its usage with the new function. Without this patch we would only request the modifier state of the keyboard group which makes mousebinds involving keyboard modifiers break for virtual keyboards like when using wayvnc. Same story for hiding the workspace overlay or snapping to regions. Fixes: #2511
27 lines
829 B
C
27 lines
829 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
#ifndef LABWC_KEYBOARD_H
|
|
#define LABWC_KEYBOARD_H
|
|
|
|
#include <stdbool.h>
|
|
#include <xkbcommon/xkbcommon.h>
|
|
|
|
struct seat;
|
|
struct keyboard;
|
|
struct wlr_keyboard;
|
|
|
|
void keyboard_reset_current_keybind(void);
|
|
void keyboard_configure(struct seat *seat, struct wlr_keyboard *kb,
|
|
bool is_virtual);
|
|
|
|
void keyboard_group_init(struct seat *seat);
|
|
void keyboard_group_finish(struct seat *seat);
|
|
|
|
void keyboard_setup_handlers(struct keyboard *keyboard);
|
|
void keyboard_set_numlock(struct wlr_keyboard *keyboard);
|
|
void keyboard_update_layout(struct seat *seat, xkb_layout_index_t layout);
|
|
void keyboard_cancel_keybind_repeat(struct keyboard *keyboard);
|
|
void keyboard_cancel_all_keybind_repeats(struct seat *seat);
|
|
|
|
uint32_t keyboard_get_all_modifiers(struct seat *seat);
|
|
|
|
#endif /* LABWC_KEYBOARD_H */
|