mirror of
https://github.com/labwc/labwc.git
synced 2025-11-01 22:58:47 -04:00
Move keyboard functions into input/keyboard.h
This commit is contained in:
parent
5e1562fae6
commit
b359b1560c
7 changed files with 38 additions and 14 deletions
19
include/input/keyboard.h
Normal file
19
include/input/keyboard.h
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
#ifndef LABWC_KEYBOARD_H
|
||||
#define LABWC_KEYBOARD_H
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
struct seat;
|
||||
struct keyboard;
|
||||
struct wlr_keyboard;
|
||||
|
||||
void keyboard_init(struct seat *seat);
|
||||
void keyboard_finish(struct seat *seat);
|
||||
|
||||
void keyboard_setup_handlers(struct keyboard *keyboard);
|
||||
void keyboard_set_numlock(struct wlr_keyboard *keyboard);
|
||||
void keyboard_cancel_keybind_repeat(struct keyboard *keyboard);
|
||||
bool keyboard_any_modifiers_pressed(struct wlr_keyboard *keyboard);
|
||||
|
||||
#endif /* LABWC_KEYBOARD_H */
|
||||
|
|
@ -410,14 +410,6 @@ struct view *desktop_cycle_view(struct server *server, struct view *start_view,
|
|||
*/
|
||||
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);
|
||||
|
||||
void seat_init(struct server *server);
|
||||
void seat_finish(struct server *server);
|
||||
void seat_reconfigure(struct server *server);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue