all repos — openbox @ 113181910a42893edb5e642e37546ab635bcac58

openbox fork - make it a bit more like ryudo

reversed tehmouse wheel buttons on the root window. scrolling up now goes to the next workspace.
Dana Jansens danakj@orodu.net
commit

113181910a42893edb5e642e37546ab635bcac58

parent

251dd4034f3a3f11a190c06d7b69670dc87d219d

1 files changed, 7 insertions(+), 6 deletions(-)

jump to
M src/openbox.ccsrc/openbox.cc

@@ -383,15 +383,16 @@ checkMenu();

screen->getRootmenu()->show(); } } else if (e->xbutton.button == 4) { - if ((screen->getCurrentWorkspaceID()-1)<0) - screen->changeWorkspaceID(screen->getWorkspaceCount()-1); + if ((screen->getCurrentWorkspaceID() + 1) > + screen->getWorkspaceCount() - 1) + screen->changeWorkspaceID(0); else - screen->changeWorkspaceID(screen->getCurrentWorkspaceID()-1); + screen->changeWorkspaceID(screen->getCurrentWorkspaceID() + 1); } else if (e->xbutton.button == 5) { - if ((screen->getCurrentWorkspaceID()+1)>screen->getWorkspaceCount()-1) - screen->changeWorkspaceID(0); + if ((screen->getCurrentWorkspaceID() - 1) < 0) + screen->changeWorkspaceID(screen->getWorkspaceCount() - 1); else - screen->changeWorkspaceID(screen->getCurrentWorkspaceID()+1); + screen->changeWorkspaceID(screen->getCurrentWorkspaceID() - 1); } } }