diff options
author | Ryan Walklin <ryan@testtoast.com> | 2018-11-28 20:03:42 +0000 |
---|---|---|
committer | Ryan Walklin <ryan@crackotage.local> | 2018-12-15 14:42:35 +1100 |
commit | 810c7b700cfb381457ad1e5a07f184f4efdcc5d1 (patch) | |
tree | e7f909e9bac6ab8acaa6d5540a534088084fdebd /include/rootston/switch.h | |
parent | 62a9cf87fafdbc5f271ea1489f3d3f6bd7288b6e (diff) |
Working switches in rootston:
Factor out switch handling to separate file
Add formal enum for toggle action
Implement binding actions
Diffstat (limited to 'include/rootston/switch.h')
-rw-r--r-- | include/rootston/switch.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/rootston/switch.h b/include/rootston/switch.h new file mode 100644 index 00000000..28197774 --- /dev/null +++ b/include/rootston/switch.h @@ -0,0 +1,18 @@ +#ifndef ROOTSTON_SWITCH_H +#define ROOTSTON_SWITCH_H + +#include "rootston/input.h" + +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; +}; + +void roots_switch_handle_toggle(struct roots_switch *lid_switch, + struct wlr_event_switch_toggle *event); + +#endif // ROOTSTON_SWITCH_H |