mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05: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
18
include/rootston/switch.h
Normal file
18
include/rootston/switch.h
Normal file
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue