summaryrefslogtreecommitdiff
path: root/util/epist/window.cc
diff options
context:
space:
mode:
Diffstat (limited to 'util/epist/window.cc')
-rw-r--r--util/epist/window.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/util/epist/window.cc b/util/epist/window.cc
index c2dff72a..376446a4 100644
--- a/util/epist/window.cc
+++ b/util/epist/window.cc
@@ -170,3 +170,10 @@ 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);
+}