aboutsummaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
Diffstat (limited to 'input.c')
-rw-r--r--input.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/input.c b/input.c
index db66cd07..847a7fbe 100644
--- a/input.c
+++ b/input.c
@@ -155,7 +155,12 @@ keyboard_leave(void *data, struct wl_keyboard *wl_keyboard, uint32_t serial,
* received a keyboard_enter()
*/
term_focus_out(wayl->focused);
+ } else {
+ LOG_WARN(
+ "compositor sent keyboard_leave event without a keyboard_enter "
+ "event: surface=%p", surface);
}
+
wayl->focused = NULL;
}
@@ -450,6 +455,11 @@ wl_pointer_leave(void *data, struct wl_pointer *wl_pointer,
uint32_t serial, struct wl_surface *surface)
{
struct wayland *wayl = data;
+ if (wayl->moused == NULL) {
+ LOG_WARN(
+ "compositor sent pointer_leave event without a pointer_enter "
+ "event: surface=%p", surface);
+ }
wayl->moused = NULL;
}