]> Dogcows Code - chaz/openbox/blobdiff - util/epist/window.cc
add raising and lowering
[chaz/openbox] / util / epist / window.cc
index 1d5a219dfc92af1ec8201f28276e21a9a7bc40e8..592aa73e60fb2492384ddc5f593fc6e7f0b4ffe9 100644 (file)
@@ -145,5 +145,22 @@ void XWindow::processEvent(const XEvent &e) {
 
 void XWindow::shade(const bool sh) const {
   _xatom->sendClientMessage(_screen->rootWindow(), XAtom::net_wm_state,
-                            _window, (sh ? 1 : 0), XAtom::net_wm_state_shaded);
+                            _window, (sh ? 1 : 0),
+                            _xatom->getAtom(XAtom::net_wm_state_shaded));
+}
+
+
+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);
 }
This page took 0.019757 seconds and 4 git commands to generate.