added parameter to the move windows. it defaults to 1.
This commit is contained in:
parent
9be80896ef
commit
1306421409
1 changed files with 8 additions and 4 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue