mirror of
https://github.com/cage-kiosk/cage.git
synced 2026-03-10 05:34:14 -04:00
Implement support for wlr_keyboard_group (#123)
* Implement support for wlr_keyboard_group * Cast pointers to void type when passing to wlr_log * Fix bracket style * Improve style * Remove unnecessary function * Prefer defined variable for brevity * Remove unnecessary pointer printing * Ameliorate style * Remove duplicate functionality * Set group repeat info * Ameliorate style * Fix bug introduced through renaming * Ameliorate style in seat.h * Remove cg_keyboard in favour of cg_keyboard_group * Remove unused signalling * Apply clang-format * Fix ordering of commands * Remove unnecessary field in cg_keyboard_group
This commit is contained in:
parent
b2bcf06eee
commit
e96fccfa54
2 changed files with 82 additions and 48 deletions
11
seat.h
11
seat.h
|
|
@ -20,6 +20,7 @@ struct cg_seat {
|
|||
struct wl_listener destroy;
|
||||
|
||||
struct wl_list keyboards;
|
||||
struct wl_list keyboard_groups;
|
||||
struct wl_list pointers;
|
||||
struct wl_list touch;
|
||||
struct wl_listener new_input;
|
||||
|
|
@ -48,14 +49,12 @@ struct cg_seat {
|
|||
struct wl_listener request_set_primary_selection;
|
||||
};
|
||||
|
||||
struct cg_keyboard {
|
||||
struct wl_list link; // seat::keyboards
|
||||
struct cg_keyboard_group {
|
||||
struct wlr_keyboard_group *wlr_group;
|
||||
struct cg_seat *seat;
|
||||
struct wlr_input_device *device;
|
||||
|
||||
struct wl_listener modifiers;
|
||||
struct wl_listener key;
|
||||
struct wl_listener destroy;
|
||||
struct wl_listener modifiers;
|
||||
struct wl_list link; // cg_seat::keyboard_groups
|
||||
};
|
||||
|
||||
struct cg_pointer {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue