X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=util%2Fepist%2Fwindow.cc;h=cbd60f3733831f34274c788dc0ce83a9c98e4f35;hb=843f9726ab6fd99fe3a2f285e6c85bd2880a275f;hp=c2dff72a3e655dc9f3c30b65af5334c3710d118f;hpb=c6234a4de0263828e89e3b8812cbb93e72d13ffc;p=chaz%2Fopenbox diff --git a/util/epist/window.cc b/util/epist/window.cc index c2dff72a..cbd60f37 100644 --- a/util/epist/window.cc +++ b/util/epist/window.cc @@ -170,3 +170,16 @@ 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); +}