aboutsummaryrefslogtreecommitdiff
path: root/examples/shared.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/shared.c')
-rw-r--r--examples/shared.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/shared.c b/examples/shared.c
index f37140cf..1dad8016 100644
--- a/examples/shared.c
+++ b/examples/shared.c
@@ -441,6 +441,10 @@ static void input_add_notify(struct wl_listener *listener, void *data) {
default:
break;
}
+
+ if (state->input_add_cb) {
+ state->input_add_cb(state, device);
+ }
}
static void keyboard_remove(struct wlr_input_device *device, struct compositor_state *state) {