diff options
Diffstat (limited to 'src/Pointer.c')
-rw-r--r-- | src/Pointer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Pointer.c b/src/Pointer.c index 4e53717..70b0ea8 100644 --- a/src/Pointer.c +++ b/src/Pointer.c @@ -75,7 +75,7 @@ Widget _XtProcessPointerEvent( { Cardinal i; - for (i = pdi->traceDepth; + for (i = (Cardinal) pdi->traceDepth; i > 0 && !newGrab; i--) newGrab = _XtCheckServerGrabsOnWidget((XEvent*)event, @@ -94,7 +94,7 @@ Widget _XtProcessPointerEvent( case ButtonRelease: { if ((device->grabType == XtPassiveServerGrab) && - !(event->state & ~(Button1Mask << (event->button - 1)) & + !(event->state & (unsigned)(~(Button1Mask << (event->button - 1))) & AllButtonsMask)) deactivateGrab = TRUE; } |