mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
Currently we may end up in an endless loop of Reconfigure requests if the Reconfigure action was called by a keybind. If the reconfigure takes too long (which may happen on slow systems with libsfdo full debug logging for example) the reconfigure might be triggered again and again. To prevent that, simply cancel all keybind_repeat timers on reconfigure.
27 lines
841 B
C
27 lines
841 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);
|
|
|
|
bool keyboard_any_modifiers_pressed(struct wlr_keyboard *keyboard);
|
|
|
|
#endif /* LABWC_KEYBOARD_H */
|