diff --git a/hw/xwayland/xwayland-input.c b/hw/xwayland/xwayland-input.c index 39bfa8bb2..8231c10b9 100644 --- a/hw/xwayland/xwayland-input.c +++ b/hw/xwayland/xwayland-input.c @@ -3214,14 +3214,14 @@ sprite_check_lost_focus(SpritePtr sprite, WindowPtr window) pointer_crossing = (xwl_seat->pointer_enter_count > 0); master = GetMaster(device, POINTER_OR_FLOAT); if (!master || !master->lastSlave) - return !pointer_crossing; + return FALSE; /* We do want the last active slave, we only check on slave xwayland * devices so we can find out the xwl_seat, but those don't actually own * their sprite, so the match doesn't mean a lot. */ if (master->lastSlave != get_pointer_device(xwl_seat)) - return !pointer_crossing; + return FALSE; if (xwl_seat->focus_window != NULL && xwl_seat->cursor_confinement_window != NULL &&