mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05: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
6
input.c
6
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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue