mirror of https://github.com/FreeRDP/FreeRDP
fix [x11]: compiler warnings in floatbar
client/X11/xf_floatbar.c:530:27: warning: use of logical '&&' with constant operand [-Wconstant-logical-operand] if (event->xmotion.state && Button1Mask && mode > XF_FLOATBAR_MODE_DRAGGING) ^ ~~~~~~~~~~~ client/X11/xf_floatbar.c:534:32: warning: use of logical '&&' with constant operand [-Wconstant-logical-operand] else if (event->xmotion.state && Button1Mask && mode == XF_FLOATBAR_MODE_DRAGGING) ^ ~~~~~~~~~~~ clang 8.0.0-svn344413-1~exp1+0~20181012203207.819~1.gbpc91f27
This commit is contained in:
parent
1dc3c91a19
commit
9b353202a5
|
@ -527,11 +527,11 @@ static void xf_floatbar_event_motionnotify(xfContext* xfc, XEvent* event)
|
|||
floatbar = xfc->window->floatbar;
|
||||
cursor = XCreateFontCursor(xfc->display, XC_arrow);
|
||||
|
||||
if (event->xmotion.state && Button1Mask && mode > XF_FLOATBAR_MODE_DRAGGING)
|
||||
if ((event->xmotion.state & Button1Mask) && (mode > XF_FLOATBAR_MODE_DRAGGING))
|
||||
{
|
||||
xf_floatbar_resize(xfc, event);
|
||||
}
|
||||
else if (event->xmotion.state && Button1Mask && mode == XF_FLOATBAR_MODE_DRAGGING)
|
||||
else if ((event->xmotion.state & Button1Mask) && (mode == XF_FLOATBAR_MODE_DRAGGING))
|
||||
{
|
||||
xf_floatbar_dragging(xfc, event);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue