summaryrefslogtreecommitdiff
path: root/src/openbox.h
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-05-23 14:53:06 +0000
committerDana Jansens <danakj@orodu.net>2002-05-23 14:53:06 +0000
commita85c9a7c6e88d94a833941d3efc368cf11243579 (patch)
treea8a3a4edaeda1a6914cd2b4db4d02b0f4ae0019f /src/openbox.h
parent83347770a6f3ebdeec85945a7e28246030f53571 (diff)
added XAtom class, and it all now compiles.
Diffstat (limited to 'src/openbox.h')
-rw-r--r--src/openbox.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/openbox.h b/src/openbox.h
index a98b2f14..009b57fc 100644
--- a/src/openbox.h
+++ b/src/openbox.h
@@ -47,6 +47,7 @@
#include <map>
#include <list>
+#include <vector>
//forward declaration
class BScreen;
@@ -115,7 +116,7 @@ private:
typedef std::list<MenuTimestamp*> MenuTimestampList;
MenuTimestampList menuTimestamps;
- typedef std::list<BScreen*> ScreenList;
+ typedef std::vector<BScreen*> ScreenList;
ScreenList screenList;
BScreen *current_screen;
@@ -158,8 +159,14 @@ public:
OpenboxWindow *focusedWindow();
void focusWindow(OpenboxWindow *w);
- BScreen *getScreen(int);
+ inline BScreen *getScreen(unsigned int s) {
+ ASSERT(s < screenList.size());
+ return screenList[s];
+ }
BScreen *searchScreen(Window);
+ inline unsigned int managedScreenCount() const {
+ return screenList.size();
+ }
inline Resource &getConfig() {
return config;