aboutsummaryrefslogtreecommitdiff
path: root/examples/pointer.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/pointer.c')
-rw-r--r--examples/pointer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/pointer.c b/examples/pointer.c
index 98b4735a..3863c0e8 100644
--- a/examples/pointer.c
+++ b/examples/pointer.c
@@ -175,9 +175,9 @@ static void handle_input_add(struct compositor_state *state, struct
wlr_input_device *device) {
struct sample_state *sample = state->data;
- // TODO handle other input devices
if (device->type == WLR_INPUT_DEVICE_POINTER ||
- device->type == WLR_INPUT_DEVICE_TOUCH) {
+ device->type == WLR_INPUT_DEVICE_TOUCH ||
+ device->type == WLR_INPUT_DEVICE_TABLET_TOOL) {
struct sample_input_device *s_device;
s_device = calloc(1, sizeof(struct sample_input_device));
s_device->device = device;