eventPtr->xmotion.x, eventPtr->xmotion.y));
} else if ((eventPtr->type == ButtonPress)
/* && (eventPtr->xbutton.button == Button1) */
- && (eventPtr->xbutton.state == 0)) {
+ && ((eventPtr->xbutton.state & ALL_BUTTONS) == 0)) {
scalePtr->flags |= BUTTON_PRESSED;
SetScaleValue(scalePtr, PixelToValue(scalePtr,
eventPtr->xbutton.x, eventPtr->xbutton.y));