From 5bf463ea955bd7e27b1f04a1eefb28ec52309cb8 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sat, 20 Jul 2002 09:17:23 +0000 Subject: add the ability to close a window --- util/epist/window.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'util/epist/window.cc') 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); +} -- cgit v1.2.3