From a85c9a7c6e88d94a833941d3efc368cf11243579 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Thu, 23 May 2002 14:53:06 +0000 Subject: added XAtom class, and it all now compiles. --- src/openbox.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/openbox.h') 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 #include +#include //forward declaration class BScreen; @@ -115,7 +116,7 @@ private: typedef std::list MenuTimestampList; MenuTimestampList menuTimestamps; - typedef std::list ScreenList; + typedef std::vector 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; -- cgit v1.2.3