summaryrefslogtreecommitdiff
path: root/util/epist/window.hh
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-08-21 23:57:03 +0000
committerDana Jansens <danakj@orodu.net>2002-08-21 23:57:03 +0000
commitcc5bde6d00892cf27fcb6e4e0b4974bcecca265f (patch)
tree1573f740857df62f526e768cd5f7d89b2218a71f /util/epist/window.hh
parentd181f1ad05332c42eb090384666171a142f54b0c (diff)
toggledecor almost done
some code cleanups/fixes
Diffstat (limited to 'util/epist/window.hh')
-rw-r--r--util/epist/window.hh10
1 files changed, 10 insertions, 0 deletions
diff --git a/util/epist/window.hh b/util/epist/window.hh
index 618731fd..f80bcb3d 100644
--- a/util/epist/window.hh
+++ b/util/epist/window.hh
@@ -46,6 +46,12 @@ public:
};
private:
+ // defined by black/openbox
+ static const unsigned int PropBlackboxAttributesElements = 9;
+ static const unsigned int AttribDecoration = 1 << 6;
+ static const unsigned int DecorNone = 0;
+ static const unsigned int DecorNormal = 2;
+
epist *_epist;
screen *_screen;
XAtom *_xatom;
@@ -67,10 +73,12 @@ private:
bool _iconic;
bool _max_vert;
bool _max_horz;
+ bool _decorated;
bool _unmapped;
void updateDimentions();
+ void updateBlackboxAttributes();
void updateNormalHints();
void updateWMHints();
void updateState();
@@ -95,6 +103,7 @@ public:
inline bool iconic() const { return _iconic; }
inline bool maxVert() const { return _max_vert; }
inline bool maxHorz() const { return _max_horz; }
+ inline bool decorated() const { return _decorated; }
inline const Rect &area() const { return _rect; }
inline unsigned int x() const { return _rect.x(); }
inline unsigned int y() const { return _rect.y(); }
@@ -109,6 +118,7 @@ public:
void lower() const;
void iconify() const;
void focus() const;
+ void decorate(bool d) const;
void sendTo(unsigned int dest) const;
void move(int x, int y) const;
void resizeRel(int dwidth, int dheight) const;