]> Dogcows Code - chaz/openbox/commitdiff
added parameter to the move windows. it defaults to 1.
authorScott Moynes <smoynes@nexus.carleton.ca>
Wed, 21 Aug 2002 03:21:42 +0000 (03:21 +0000)
committerScott Moynes <smoynes@nexus.carleton.ca>
Wed, 21 Aug 2002 03:21:42 +0000 (03:21 +0000)
util/epist/screen.cc

index 48eaaaf27c74973dcd72966fcc18ebfc6635b0fd..39eb4895def43138390cd8c47597bb94f8052c6a 100644 (file)
@@ -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:
This page took 0.026528 seconds and 4 git commands to generate.