noaction = 0,
execute,
iconify,
- raise,
- lower,
+ raise, //done
+ lower, //done
close, //done
toggleshade, //done
moveWindowUp,
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();
}
window->close();
return;
+ case Action::raise:
+ window->raise();
+ return;
+
+ case Action::lower:
+ window->lower();
+ return;
+
case Action::toggleshade:
window->shade(! window->shaded());
return;
_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);
+}
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; }