aboutsummaryrefslogtreecommitdiff
path: root/cube/cube.cpp
diff options
context:
space:
mode:
authorCharles Giessen <charles@lunarg.com>2022-03-31 10:07:22 -0600
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>2022-03-31 10:57:55 -0600
commite494de740e1b64996e9ceee81ee084768ec3e70a (patch)
tree3e8b85d7346c22751952ac4d3f818dd455a5d308 /cube/cube.cpp
parent431f3b53ae73d91eb1560fef3862355d6345cd94 (diff)
downloadusermoji-e494de740e1b64996e9ceee81ee084768ec3e70a.tar.xz
cubepp: Fix wayland regression
Diffstat (limited to 'cube/cube.cpp')
-rw-r--r--cube/cube.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/cube/cube.cpp b/cube/cube.cpp
index 8970a4ee..fdba5578 100644
--- a/cube/cube.cpp
+++ b/cube/cube.cpp
@@ -486,7 +486,7 @@ static void seat_handle_capabilities(void *data, wl_seat *seat, uint32_t caps) {
Demo &demo = *static_cast<Demo *>(data);
if ((caps & WL_SEAT_CAPABILITY_POINTER) && !demo.pointer) {
demo.pointer = wl_seat_get_pointer(seat);
- wl_pointer_add_listener(demo.pointer, &pointer_listener, demo);
+ wl_pointer_add_listener(demo.pointer, &pointer_listener, &demo);
} else if (!(caps & WL_SEAT_CAPABILITY_POINTER) && demo.pointer) {
wl_pointer_destroy(demo.pointer);
demo.pointer = nullptr;
@@ -494,7 +494,7 @@ static void seat_handle_capabilities(void *data, wl_seat *seat, uint32_t caps) {
// Subscribe to keyboard events
if (caps & WL_SEAT_CAPABILITY_KEYBOARD) {
demo.keyboard = wl_seat_get_keyboard(seat);
- wl_keyboard_add_listener(demo.keyboard, &keyboard_listener, demo);
+ wl_keyboard_add_listener(demo.keyboard, &keyboard_listener, &demo);
} else if (!(caps & WL_SEAT_CAPABILITY_KEYBOARD)) {
wl_keyboard_destroy(demo.keyboard);
demo.keyboard = nullptr;
@@ -519,7 +519,7 @@ static void registry_handle_global(void *data, wl_registry *registry, uint32_t i
xdg_wm_base_add_listener(demo.wm_base, &wm_base_listener, nullptr);
} else if (strcmp(interface, wl_seat_interface.name) == 0) {
demo.seat = (wl_seat *)wl_registry_bind(registry, id, &wl_seat_interface, 1);
- wl_seat_add_listener(demo.seat, &seat_listener, demo);
+ wl_seat_add_listener(demo.seat, &seat_listener, &demo);
} else if (strcmp(interface, zxdg_decoration_manager_v1_interface.name) == 0) {
demo.xdg_decoration_mgr =
(zxdg_decoration_manager_v1 *)wl_registry_bind(registry, id, &zxdg_decoration_manager_v1_interface, 1);