1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-01-04 21:04:18 +01:00

fixed little bug in non-continuous mode for slider

This commit is contained in:
kojima
1999-04-19 00:20:13 +00:00
parent cf6fbf7e13
commit df04a0a157

View File

@@ -469,7 +469,6 @@ static void
handleActionEvents(XEvent *event, void *data)
{
WMSlider *sPtr = (Slider*)data;
int ovalue = sPtr->value;
CHECK_CLASS(data, WC_Slider);
@@ -512,7 +511,7 @@ handleActionEvents(XEvent *event, void *data)
break;
case ButtonRelease:
if (!sPtr->flags.continuous && ovalue != sPtr->value && sPtr->action) {
if (!sPtr->flags.continuous && sPtr->action) {
(*sPtr->action)(sPtr, sPtr->clientData);
}
sPtr->flags.dragging = 0;