all repos — openbox @ 13064214093fc2104367a2c1e7957316f22f6c22

openbox fork - make it a bit more like ryudo

added parameter to the move windows. it defaults to 1.
Scott Moynes smoynes@nexus.carleton.ca
commit

13064214093fc2104367a2c1e7957316f22f6c22

parent

9be80896ef4bc12bfd6a1d218b976c06482b6e2b

1 files changed, 8 insertions(+), 4 deletions(-)

jump to
M util/epist/screen.ccutil/epist/screen.cc

@@ -279,19 +279,23 @@ window->sendTo(0xffffffff);

return; case Action::moveWindowUp: - window->move(window->x(), window->y() - it->number()); + window->move(window->x(), window->y() - + (it->number() != 0 ? it->number(): 1)); return; case Action::moveWindowDown: - window->move(window->x(), window->y() + it->number()); + window->move(window->x(), window->y() + + (it->number() != 0 ? it->number(): 1)); return; case Action::moveWindowLeft: - window->move(window->x() - it->number(), window->y()); + window->move(window->x() - (it->number() != 0 ? it->number(): 1), + window->y()); return; case Action::moveWindowRight: - window->move(window->x() + it->number(), window->y()); + window->move(window->x() + (it->number() != 0 ? it->number(): 1), + window->y()); return; case Action::resizeWindowWidth: