aboutsummaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-11-28 18:24:16 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-11-28 18:24:16 +0000
commit9efa28b4c66c2183d65085c6491732187fded12a (patch)
tree82599a91e514e7a293d1554c90a084703b292ac9 /input.c
parentrender: fix rendering of cursor when cell is reversed (diff)
input: sway 1.2 bug: keyboard_leave() called with surface == NULL
Diffstat (limited to 'input.c')
-rw-r--r--input.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/input.c b/input.c
index 803eff76..ca3ffb13 100644
--- a/input.c
+++ b/input.c
@@ -138,8 +138,10 @@ keyboard_leave(void *data, struct wl_keyboard *wl_keyboard, uint32_t serial,
{
struct wayland *wayl = data;
- assert(wayl->focused == NULL ||
- wayl_terminal_from_surface(wayl, surface) == wayl->focused);
+ assert(
+ wayl->focused == NULL ||
+ surface == NULL || /* Seen on Sway 1.2 */
+ wayl_terminal_from_surface(wayl, surface) == wayl->focused);
stop_repeater(wayl, -1);
if (wayl->focused != NULL) {