summaryrefslogtreecommitdiff
path: root/util/epist/epist.hh
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-07-24 08:33:35 +0000
committerDana Jansens <danakj@orodu.net>2002-07-24 08:33:35 +0000
commit28594da6de001f1d8b6b975286032302db3a6491 (patch)
treedfbd92e585fbe52456061b79065814b9405b51b3 /util/epist/epist.hh
parent3792d283331087b1ae92419f847efaa7f879e440 (diff)
epist + multihead == <drool>
added next/prevWindowOnAllScreens added next/prevScreen
Diffstat (limited to 'util/epist/epist.hh')
-rw-r--r--util/epist/epist.hh20
1 files changed, 14 insertions, 6 deletions
diff --git a/util/epist/epist.hh b/util/epist/epist.hh
index 6da38181..1932902d 100644
--- a/util/epist/epist.hh
+++ b/util/epist/epist.hh
@@ -31,27 +31,30 @@ extern "C" {
#include <map>
#include "actions.hh"
+#include "window.hh"
#include "../../src/BaseDisplay.hh"
class XAtom;
class screen;
-class XWindow;
class epist : public BaseDisplay {
private:
- std::string _rc_file;
- XAtom *_xatom;
- char **_argv;
+ std::string _rc_file;
+ XAtom *_xatom;
+ char **_argv;
typedef std::vector<screen *> ScreenList;
- ScreenList _screens;
+ ScreenList _screens;
typedef std::map<Window, XWindow*> WindowLookup;
typedef WindowLookup::value_type WindowLookupPair;
WindowLookup _windows;
+
+ WindowList _clients;
+ WindowList::iterator _active;
- ActionList _actions;
+ ActionList _actions;
virtual void process_event(XEvent *e);
virtual bool handleSignal(int sig);
@@ -72,12 +75,17 @@ public:
void removeWindow(XWindow *window);
XWindow *findWindow(Window window) const;
+ void cycleScreen(int current, bool forward) const;
+
void getLockModifiers(int &numlockMask, int &scrolllockMask) const {
numlockMask = NumLockMask;
scrolllockMask = ScrollLockMask;
}
const ActionList &actions(void) { return _actions; }
+
+ WindowList& clientsList() { return _clients; }
+ WindowList::iterator& activeWindow() { return _active; }
};
#endif // __epist_hh