keyboard: add option to enable Num Lock automatically (default=enabled)

Co-authored-by: @Consolatis
This commit is contained in:
John Lindgren 2023-10-08 22:26:26 -04:00 committed by Johan Malm
parent 1f541be481
commit ecad76560e
7 changed files with 46 additions and 0 deletions

View file

@ -62,6 +62,7 @@ struct rcxml {
/* keyboard */
int repeat_rate;
int repeat_delay;
bool kb_numlock_enable;
struct wl_list keybinds; /* struct keybind.link */
/* mouse */

View file

@ -419,6 +419,7 @@ void desktop_focus_topmost_view(struct server *server);
void keyboard_cancel_keybind_repeat(struct keyboard *keyboard);
void keyboard_key_notify(struct wl_listener *listener, void *data);
void keyboard_modifiers_notify(struct wl_listener *listener, void *data);
void keyboard_set_numlock(struct wlr_keyboard *keyboard);
void keyboard_init(struct seat *seat);
bool keyboard_any_modifiers_pressed(struct wlr_keyboard *keyboard);
void keyboard_finish(struct seat *seat);