X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=util%2Fepist%2Fscreen.cc;h=19a57c71dd1658d847b668a43c629eda400a3ee1;hb=32ac5d9b885bec69be2785ad544ba6c473418ce8;hp=3f78c51ff576085799a6bf9b73d66ff3926412bd;hpb=6d403febc6fe6c29728d013280756f7951f195db;p=chaz%2Fopenbox diff --git a/util/epist/screen.cc b/util/epist/screen.cc index 3f78c51f..19a57c71 100644 --- a/util/epist/screen.cc +++ b/util/epist/screen.cc @@ -245,10 +245,38 @@ void screen::handleKeypress(const XEvent &e) { window->sendTo(0xffffffff); return; + case Action::moveWindowUp: + window->move(0, -it->number()); + return; + + case Action::moveWindowDown: + window->move(0, it->number()); + return; + + case Action::moveWindowLeft: + window->move(-it->number(), 0); + return; + + case Action::moveWindowRight: + window->move(it->number(), 0); + return; + case Action::toggleshade: window->shade(! window->shaded()); return; + case Action::toggleMaximizeHorizontal: + window->toggleMaximize(XWindow::Max_Horz); + return; + + case Action::toggleMaximizeVertical: + window->toggleMaximize(XWindow::Max_Vert); + return; + + case Action::toggleMaximizeFull: + window->toggleMaximize(XWindow::Max_Full); + return; + default: assert(false); // unhandled action type! break;