mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
Working switches in rootston:
Factor out switch handling to separate file Add formal enum for toggle action Implement binding actions
This commit is contained in:
parent
62a9cf87fa
commit
810c7b700c
7 changed files with 60 additions and 16 deletions
|
|
@ -5,6 +5,7 @@
|
|||
#include "rootston/input.h"
|
||||
#include "rootston/keyboard.h"
|
||||
#include "rootston/layers.h"
|
||||
#include "rootston/switch.h"
|
||||
#include "rootston/text_input.h"
|
||||
|
||||
struct roots_seat {
|
||||
|
|
@ -75,15 +76,6 @@ struct roots_pointer {
|
|||
struct wl_list link;
|
||||
};
|
||||
|
||||
struct roots_switch {
|
||||
struct roots_seat *seat;
|
||||
struct wlr_input_device *device;
|
||||
struct wl_listener device_destroy;
|
||||
|
||||
struct wl_listener toggle;
|
||||
struct wl_list link;
|
||||
};
|
||||
|
||||
struct roots_touch {
|
||||
struct roots_seat *seat;
|
||||
struct wlr_input_device *device;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue