mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-21 21:38:00 +01:00
Small fix to the mouse wheel code
This commit is contained in:
@@ -730,13 +730,16 @@ handleActionEvents(XEvent *event, void *data)
|
|||||||
if (!bPtr->flags.enabled)
|
if (!bPtr->flags.enabled)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
if (!bPtr->flags.pullsDown && !bPtr->menuView->flags.mapped) {
|
if (event->xbutton.button==WINGsConfiguration.mouseWheelUp) {
|
||||||
if (event->xbutton.button==WINGsConfiguration.mouseWheelDown) {
|
if (!bPtr->menuView->flags.mapped && !bPtr->flags.pullsDown) {
|
||||||
wheelScrollDown(bPtr);
|
|
||||||
} else if (event->xbutton.button==WINGsConfiguration.mouseWheelUp) {
|
|
||||||
wheelScrollUp(bPtr);
|
wheelScrollUp(bPtr);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
} else if (event->xbutton.button==WINGsConfiguration.mouseWheelDown) {
|
||||||
|
if (!bPtr->menuView->flags.mapped && !bPtr->flags.pullsDown) {
|
||||||
|
wheelScrollDown(bPtr);
|
||||||
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
popUpMenu(bPtr);
|
popUpMenu(bPtr);
|
||||||
if (!bPtr->flags.pullsDown) {
|
if (!bPtr->flags.pullsDown) {
|
||||||
|
|||||||
Reference in New Issue
Block a user