1
0
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:
dan
2000-04-13 21:40:57 +00:00
parent 5c76167098
commit fbc2c75c8a

View File

@@ -730,15 +730,18 @@ handleActionEvents(XEvent *event, void *data)
if (!bPtr->flags.enabled)
break;
if (!bPtr->flags.pullsDown && !bPtr->menuView->flags.mapped) {
if (event->xbutton.button==WINGsConfiguration.mouseWheelDown) {
wheelScrollDown(bPtr);
} else if (event->xbutton.button==WINGsConfiguration.mouseWheelUp) {
if (event->xbutton.button==WINGsConfiguration.mouseWheelUp) {
if (!bPtr->menuView->flags.mapped && !bPtr->flags.pullsDown) {
wheelScrollUp(bPtr);
}
break;
}
popUpMenu(bPtr);
break;
} else if (event->xbutton.button==WINGsConfiguration.mouseWheelDown) {
if (!bPtr->menuView->flags.mapped && !bPtr->flags.pullsDown) {
wheelScrollDown(bPtr);
}
break;
}
popUpMenu(bPtr);
if (!bPtr->flags.pullsDown) {
bPtr->highlightedItem = bPtr->selectedItemIndex;
bPtr->flags.insideMenu = 1;