Destroy the input wayland objects

They are not automatically destroyed by the compositor when the seat
loses them.

Change-Id: I72d45d664948afb4b39f137c91870f21d26dcb4a
Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
This commit is contained in:
Giulio Camuffo 2014-01-09 22:09:59 +01:00 committed by The Qt Project
parent fec78c702d
commit 1c72063150

View File

@ -112,6 +112,7 @@ public:
if (mXkbContext) if (mXkbContext)
xkb_context_unref(mXkbContext); xkb_context_unref(mXkbContext);
#endif #endif
wl_keyboard_destroy(object());
} }
void keyboard_keymap(uint32_t format, void keyboard_keymap(uint32_t format,
@ -161,6 +162,7 @@ public:
} }
~Pointer() ~Pointer()
{ {
wl_pointer_destroy(object());
} }
void pointer_enter(uint32_t serial, struct wl_surface *surface, void pointer_enter(uint32_t serial, struct wl_surface *surface,
@ -193,6 +195,7 @@ public:
} }
~Touch() ~Touch()
{ {
wl_touch_destroy(object());
} }
void touch_down(uint32_t serial, void touch_down(uint32_t serial,