X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=util%2Fepist%2Fwindow.cc;h=cbd60f3733831f34274c788dc0ce83a9c98e4f35;hb=ffd7021d22f534aa5974641e97911b24369d5896;hp=592aa73e60fb2492384ddc5f593fc6e7f0b4ffe9;hpb=b94699afc339c469534521c44470aa6d19e5b4cc;p=chaz%2Fopenbox diff --git a/util/epist/window.cc b/util/epist/window.cc index 592aa73e..cbd60f37 100644 --- a/util/epist/window.cc +++ b/util/epist/window.cc @@ -164,3 +164,22 @@ void XWindow::raise() const { 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); +}