aboutsummaryrefslogtreecommitdiff
path: root/rootston/seat.c
diff options
context:
space:
mode:
authorTony Crisci <tony@dubstepdish.com>2017-11-07 16:24:21 -0500
committerTony Crisci <tony@dubstepdish.com>2017-11-07 16:24:21 -0500
commit5ac05b0c475aae86e0a9356dc68d59a5f4004d5e (patch)
tree8ebf45ada699683b2f6ea11fac8f01910dff2029 /rootston/seat.c
parent09c60924235805d07b7915ba879685545a3442aa (diff)
rootston: input remove stubs
Diffstat (limited to 'rootston/seat.c')
-rw-r--r--rootston/seat.c43
1 files changed, 42 insertions, 1 deletions
diff --git a/rootston/seat.c b/rootston/seat.c
index ec7709fa..3a009a51 100644
--- a/rootston/seat.c
+++ b/rootston/seat.c
@@ -352,11 +352,52 @@ void roots_seat_add_device(struct roots_seat *seat,
}
}
-void roots_seat_remove_device(struct roots_seat *seat,
+static void seat_remove_keyboard(struct roots_seat *seat,
+ struct wlr_input_device *device) {
+ // TODO
+}
+
+static void seat_remove_pointer(struct roots_seat *seat,
+ struct wlr_input_device *device) {
+ // TODO
+}
+
+static void seat_remove_touch(struct roots_seat *seat,
+ struct wlr_input_device *device) {
+ // TODO
+}
+
+static void seat_remove_tablet_pad(struct roots_seat *seat,
+ struct wlr_input_device *device) {
+ // TODO
+}
+
+static void seat_remove_tablet_tool(struct roots_seat *seat,
struct wlr_input_device *device) {
// TODO
}
+void roots_seat_remove_device(struct roots_seat *seat,
+ struct wlr_input_device *device) {
+ switch (device->type) {
+ case WLR_INPUT_DEVICE_KEYBOARD:
+ seat_remove_keyboard(seat, device);
+ break;
+ case WLR_INPUT_DEVICE_POINTER:
+ seat_remove_pointer(seat, device);
+ break;
+ case WLR_INPUT_DEVICE_TOUCH:
+ seat_remove_touch(seat, device);
+ break;
+ case WLR_INPUT_DEVICE_TABLET_PAD:
+ seat_remove_tablet_pad(seat, device);
+ break;
+ case WLR_INPUT_DEVICE_TABLET_TOOL:
+ seat_remove_tablet_tool(seat, device);
+ break;
+ }
+}
+
void roots_seat_configure_xcursor(struct roots_seat *seat) {
struct wlr_xcursor *xcursor = get_default_xcursor(seat->cursor->xcursor_theme);
struct wlr_xcursor_image *image = xcursor->images[0];