[client,x11] fix floatbar hide

This commit is contained in:
akallabeth 2024-06-03 10:52:17 +02:00
parent 47276dabaa
commit ee789dee0b
No known key found for this signature in database
GPG Key ID: A49454A3FC909FD5

View File

@ -450,13 +450,13 @@ static BOOL xf_event_MotionNotify(xfContext* xfc, const XMotionEvent* event, BOO
{
WINPR_ASSERT(xfc);
if (xfc->window)
xf_floatbar_set_root_y(xfc->window->floatbar, event->y);
if (xfc->xi_event ||
(xfc->common.mouse_grabbed && freerdp_client_use_relative_mouse_events(&xfc->common)))
return TRUE;
if (xfc->window)
xf_floatbar_set_root_y(xfc->window->floatbar, event->y);
return xf_generic_MotionNotify(xfc, event->x, event->y, event->state, event->window, app);
}