Fixed #6221: Update floatbar position with multitouch input

(cherry picked from commit 004910ce5d)
This commit is contained in:
Armin Novak 2020-05-22 11:24:25 +02:00 committed by akallabeth
parent 0c779b4fef
commit ce6f2a271b
1 changed files with 3 additions and 3 deletions

View File

@ -374,12 +374,12 @@ BOOL xf_generic_MotionNotify(xfContext* xfc, int x, int y, int state, Window win
}
static BOOL xf_event_MotionNotify(xfContext* xfc, const XMotionEvent* event, BOOL app)
{
if (xfc->use_xinput)
return TRUE;
if (xfc->window)
xf_floatbar_set_root_y(xfc->window->floatbar, event->y);
if (xfc->use_xinput)
return TRUE;
return xf_generic_MotionNotify(xfc, event->x, event->y, event->state, event->window, app);
}