Merge pull request #10237 from akallabeth/floatbar-fix

[client,x11] fix floatbar hide
This commit is contained in:
akallabeth 2024-06-03 11:24:50 +02:00 committed by GitHub
commit 213b61b308
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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);
}