]> Dogcows Code - chaz/openbox/blobdiff - util/epist/window.cc
properly track the active workspace and the number of workspaces.
[chaz/openbox] / util / epist / window.cc
index e650f4156937e3aab8cc4c8e0783a04c2d0a0b25..c2dff72a3e655dc9f3c30b65af5334c3710d118f 100644 (file)
@@ -148,3 +148,25 @@ void XWindow::shade(const bool sh) const {
                             _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);
+}
+
+
+void XWindow::iconify() const {
+  _xatom->sendClientMessage(_screen->rootWindow(), XAtom::wm_change_state,
+                            _window, IconicState);
+}
This page took 0.022665 seconds and 4 git commands to generate.