summaryrefslogtreecommitdiff
path: root/util/epist/window.cc
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-07-20 09:17:23 +0000
committerDana Jansens <danakj@orodu.net>2002-07-20 09:17:23 +0000
commit5bf463ea955bd7e27b1f04a1eefb28ec52309cb8 (patch)
treefb22192458db019ece0791df16ec45ebdab35fc2 /util/epist/window.cc
parentc9be3ee06121bc4d0dec3586918607f18dabdb89 (diff)
add the ability to close a window
Diffstat (limited to 'util/epist/window.cc')
-rw-r--r--util/epist/window.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/util/epist/window.cc b/util/epist/window.cc
index e650f415..c956bdfa 100644
--- a/util/epist/window.cc
+++ b/util/epist/window.cc
@@ -148,3 +148,9 @@ 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);
+}