all repos — openbox @ b94699afc339c469534521c44470aa6d19e5b4cc

openbox fork - make it a bit more like ryudo

add raising and lowering
Dana Jansens danakj@orodu.net
commit

b94699afc339c469534521c44470aa6d19e5b4cc

parent

5bf463ea955bd7e27b1f04a1eefb28ec52309cb8

M util/epist/actions.hhutil/epist/actions.hh

@@ -36,8 +36,8 @@ enum ActionType {

noaction = 0, execute, iconify, - raise, - lower, + raise, //done + lower, //done close, //done toggleshade, //done moveWindowUp,
M util/epist/epist.ccutil/epist/epist.cc

@@ -100,6 +100,14 @@ _actions.push_back(Action(Action::prevWindow,

XKeysymToKeycode(getXDisplay(), XStringToKeysym("Tab")), Mod1Mask | ShiftMask)); + _actions.push_back(Action(Action::raise, + XKeysymToKeycode(getXDisplay(), + XStringToKeysym("Up")), + Mod1Mask)); + _actions.push_back(Action(Action::lower, + XKeysymToKeycode(getXDisplay(), + XStringToKeysym("Down")), + Mod1Mask)); activateGrabs(); }
M util/epist/screen.ccutil/epist/screen.cc

@@ -179,6 +179,14 @@ case Action::close:

window->close(); return; + case Action::raise: + window->raise(); + return; + + case Action::lower: + window->lower(); + return; + case Action::toggleshade: window->shade(! window->shaded()); return;
M util/epist/window.ccutil/epist/window.cc

@@ -154,3 +154,13 @@ void XWindow::close() const {

_xatom->sendClientMessage(_screen->rootWindow(), XAtom::net_close_window, _window); } + + +void XWindow::raise() const { + XRaiseWindow(_epist->getXDisplay(), _window); +} + + +void XWindow::lower() const { + XLowerWindow(_epist->getXDisplay(), _window); +}
M util/epist/window.hhutil/epist/window.hh

@@ -82,6 +82,8 @@ void processEvent(const XEvent &e);

void shade(const bool sh) const; void close() const; + void raise() const; + void lower() const; bool operator == (const XWindow &w) const { return w._window == _window; } bool operator == (const Window &w) const { return w == _window; }