aboutsummaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
Diffstat (limited to 'input.c')
-rw-r--r--input.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/input.c b/input.c
index 6a829a70..74cd320f 100644
--- a/input.c
+++ b/input.c
@@ -704,9 +704,13 @@ static void
keyboard_enter(void *data, struct wl_keyboard *wl_keyboard, uint32_t serial,
struct wl_surface *surface, struct wl_array *keys)
{
- xassert(surface != NULL);
xassert(serial != 0);
+ if (unlikely(surface == NULL)) {
+ /* Seen on Hyprland */
+ return;
+ }
+
struct seat *seat = data;
struct wl_window *win = wl_surface_get_user_data(surface);
struct terminal *term = win->term;