summaryrefslogtreecommitdiff
path: root/util/epist/window.cc
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-08-22 00:10:21 +0000
committerDana Jansens <danakj@orodu.net>2002-08-22 00:10:21 +0000
commitf44e3ed9a7232a38b454e293daee2f3e7009ad54 (patch)
treef3dd3ca8ea0e911e71368123bb4d480e78984184 /util/epist/window.cc
parentcc5bde6d00892cf27fcb6e4e0b4974bcecca265f (diff)
toggleDecorations!
Diffstat (limited to 'util/epist/window.cc')
-rw-r--r--util/epist/window.cc11
1 files changed, 10 insertions, 1 deletions
diff --git a/util/epist/window.cc b/util/epist/window.cc
index 1e8bc227..85429719 100644
--- a/util/epist/window.cc
+++ b/util/epist/window.cc
@@ -36,6 +36,13 @@ using std::dec;
#include "window.hh"
#include "../../src/XAtom.hh"
+ // defined by black/openbox
+const unsigned long XWindow::PropBlackboxAttributesElements;
+const unsigned long XWindow::AttribDecoration;
+const unsigned long XWindow::DecorNone;
+const unsigned long XWindow::DecorNormal;
+
+
XWindow::XWindow(epist *epist, screen *screen, Window window)
: _epist(epist), _screen(screen), _xatom(epist->xatom()), _window(window) {
@@ -203,8 +210,10 @@ void XWindow::processEvent(const XEvent &e) {
case PropertyNotify:
if (e.xproperty.atom == XA_WM_NORMAL_HINTS)
updateNormalHints();
- if (e.xproperty.atom == XA_WM_HINTS)
+ else if (e.xproperty.atom == XA_WM_HINTS)
updateWMHints();
+ else if (e.xproperty.atom == _xatom->getAtom(XAtom::blackbox_attributes))
+ updateBlackboxAttributes();
else if (e.xproperty.atom == _xatom->getAtom(XAtom::net_wm_state))
updateState();
else if (e.xproperty.atom == _xatom->getAtom(XAtom::net_wm_desktop))