From: Scott Moynes Date: Wed, 21 Aug 2002 03:21:42 +0000 (+0000) Subject: added parameter to the move windows. it defaults to 1. X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=13064214093fc2104367a2c1e7957316f22f6c22;p=chaz%2Fopenbox added parameter to the move windows. it defaults to 1. --- diff --git a/util/epist/screen.cc b/util/epist/screen.cc index 48eaaaf2..39eb4895 100644 --- a/util/epist/screen.cc +++ b/util/epist/screen.cc @@ -279,19 +279,23 @@ void screen::handleKeypress(const XEvent &e) { 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: