]> Dogcows Code - chaz/openbox/blobdiff - util/epist/window.cc
add execute command. add string to action class.
[chaz/openbox] / util / epist / window.cc
index c956bdfa875b6c5b0435d0ec353a638609889923..cbd60f3733831f34274c788dc0ce83a9c98e4f35 100644 (file)
@@ -154,3 +154,32 @@ 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);
+}
+
+
+void XWindow::focus() const {
+  // this will also unshade the window..
+  _xatom->sendClientMessage(_screen->rootWindow(), XAtom::net_active_window,
+                            _window);
+}
+
+
+void XWindow::sendTo(unsigned int dest) const {
+  _xatom->sendClientMessage(_screen->rootWindow(), XAtom::net_wm_desktop,
+                            _window, dest);
+}
This page took 0.02058 seconds and 4 git commands to generate.