mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-17 06:46:21 -04:00
input: sway 1.2 bug: keyboard_leave() called with surface == NULL
This commit is contained in:
parent
b96fb2ddab
commit
9efa28b4c6
1 changed files with 4 additions and 2 deletions
4
input.c
4
input.c
|
|
@ -138,7 +138,9 @@ keyboard_leave(void *data, struct wl_keyboard *wl_keyboard, uint32_t serial,
|
||||||
{
|
{
|
||||||
struct wayland *wayl = data;
|
struct wayland *wayl = data;
|
||||||
|
|
||||||
assert(wayl->focused == NULL ||
|
assert(
|
||||||
|
wayl->focused == NULL ||
|
||||||
|
surface == NULL || /* Seen on Sway 1.2 */
|
||||||
wayl_terminal_from_surface(wayl, surface) == wayl->focused);
|
wayl_terminal_from_surface(wayl, surface) == wayl->focused);
|
||||||
|
|
||||||
stop_repeater(wayl, -1);
|
stop_repeater(wayl, -1);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue