summaryrefslogtreecommitdiff
path: root/util/epist/window.hh
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-07-12 16:29:59 +0000
committerDana Jansens <danakj@orodu.net>2002-07-12 16:29:59 +0000
commit24a1e215d1f8d2ff1674847278a15336d4b671b6 (patch)
treebb96e0562f4a6038a592a86be33d668863273cbc /util/epist/window.hh
parent89d09297f0ef3d2db648a756f62a57bf2be317df (diff)
epist now based on the BaseDisplay.
has the ability to be multiscreen!
Diffstat (limited to 'util/epist/window.hh')
-rw-r--r--util/epist/window.hh18
1 files changed, 11 insertions, 7 deletions
diff --git a/util/epist/window.hh b/util/epist/window.hh
index c83f020c..636e90ba 100644
--- a/util/epist/window.hh
+++ b/util/epist/window.hh
@@ -30,12 +30,16 @@ extern "C" {
#include <list>
#include <string>
+class epist;
class XWindow;
+class XAtom;
typedef std::list<XWindow *> WindowList;
class XWindow {
private:
+ epist *_epist;
+ XAtom *_xatom;
Window _window;
unsigned int _desktop;
@@ -51,8 +55,13 @@ private:
bool _unmapped;
+ void updateState();
+ void updateDesktop();
+ void updateTitle();
+ void updateClass();
+
public:
- XWindow(Window window);
+ XWindow(epist *epist, Window window);
virtual ~XWindow();
inline Window window() const { return _window; }
@@ -67,12 +76,7 @@ public:
inline bool maxVert() const { return _max_vert; }
inline bool maxHorz() const { return _max_horz; }
- inline void setUnmapped(bool u) { _unmapped = u; }
-
- void updateState();
- void updateDesktop();
- void updateTitle();
- void updateClass();
+ void processEvent(const XEvent &e);
bool operator == (const XWindow &w) const { return w._window == _window; }
bool operator == (const Window &w) const { return w == _window; }