diff options
author | Tony Crisci <tony@dubstepdish.com> | 2017-11-02 20:13:10 -0400 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2017-11-02 20:31:19 -0400 |
commit | 53021f8ed428a1a023769339e6162bfebbe4c7a2 (patch) | |
tree | e7b29dc916ba6e35d8adc8e8225ba3b4e24f53ad /rootston | |
parent | 80b4a2f64c51de4a257182e381977710a5fbeb10 (diff) |
rootston: break up input.h
Diffstat (limited to 'rootston')
-rw-r--r-- | rootston/config.c | 1 | ||||
-rw-r--r-- | rootston/cursor.c | 4 | ||||
-rw-r--r-- | rootston/input.c | 4 | ||||
-rw-r--r-- | rootston/keyboard.c | 1 | ||||
-rw-r--r-- | rootston/pointer.c | 1 | ||||
-rw-r--r-- | rootston/tablet_tool.c | 1 | ||||
-rw-r--r-- | rootston/touch.c | 1 |
7 files changed, 13 insertions, 0 deletions
diff --git a/rootston/config.c b/rootston/config.c index dc7a4b1d..a3ae78be 100644 --- a/rootston/config.c +++ b/rootston/config.c @@ -13,6 +13,7 @@ #include <wlr/types/wlr_box.h> #include "rootston/config.h" #include "rootston/input.h" +#include "rootston/keyboard.h" #include "rootston/ini.h" static void usage(const char *name, int ret) { diff --git a/rootston/cursor.c b/rootston/cursor.c index 31001a9f..61dcae7a 100644 --- a/rootston/cursor.c +++ b/rootston/cursor.c @@ -18,6 +18,10 @@ #include "rootston/input.h" #include "rootston/desktop.h" #include "rootston/view.h" +#include "rootston/keyboard.h" +#include "rootston/pointer.h" +#include "rootston/tablet_tool.h" +#include "rootston/touch.h" const struct roots_input_event *get_input_event(struct roots_input *input, uint32_t serial) { diff --git a/rootston/input.c b/rootston/input.c index 5d367a5e..c8d46a69 100644 --- a/rootston/input.c +++ b/rootston/input.c @@ -8,6 +8,10 @@ #include "rootston/server.h" #include "rootston/config.h" #include "rootston/input.h" +#include "rootston/tablet_tool.h" +#include "rootston/keyboard.h" +#include "rootston/pointer.h" +#include "rootston/touch.h" static const char *device_type(enum wlr_input_device_type type) { switch (type) { diff --git a/rootston/keyboard.c b/rootston/keyboard.c index e174b731..9458a05c 100644 --- a/rootston/keyboard.c +++ b/rootston/keyboard.c @@ -10,6 +10,7 @@ #include <wlr/util/log.h> #include <xkbcommon/xkbcommon.h> #include "rootston/input.h" +#include "rootston/keyboard.h" static ssize_t keyboard_pressed_keysym_index(struct roots_keyboard *keyboard, xkb_keysym_t keysym) { diff --git a/rootston/pointer.c b/rootston/pointer.c index 299ecdfc..cb099264 100644 --- a/rootston/pointer.c +++ b/rootston/pointer.c @@ -3,6 +3,7 @@ #include <wlr/types/wlr_input_device.h> #include <wlr/types/wlr_pointer.h> #include "rootston/input.h" +#include "rootston/pointer.h" void pointer_add(struct wlr_input_device *device, struct roots_input *input) { struct roots_pointer *pointer = calloc(sizeof(struct roots_pointer), 1); diff --git a/rootston/tablet_tool.c b/rootston/tablet_tool.c index a612e683..3327115d 100644 --- a/rootston/tablet_tool.c +++ b/rootston/tablet_tool.c @@ -4,6 +4,7 @@ #include <wlr/types/wlr_pointer.h> #include <wlr/util/log.h> #include "rootston/input.h" +#include "rootston/tablet_tool.h" void tablet_tool_add(struct wlr_input_device *device, struct roots_input *input) { struct roots_tablet_tool *tool = calloc(sizeof(struct roots_tablet_tool), 1); diff --git a/rootston/touch.c b/rootston/touch.c index f6d9b11a..069853ab 100644 --- a/rootston/touch.c +++ b/rootston/touch.c @@ -3,6 +3,7 @@ #include <wlr/types/wlr_input_device.h> #include <wlr/types/wlr_pointer.h> #include "rootston/input.h" +#include "rootston/touch.h" // TODO: we'll likely want touch events to both control the cursor *and* be // submitted directly to the seat. |