X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=src%2Fopenbox.hh;h=2b8e8b07f5b1aab3ff0e120063baf19656409731;hb=3682df8ed27e96067a171b71cbf58d5a00ca813b;hp=9001db60285bd5c6b92c19be305db56dff0420d2;hpb=9e77a88d269bfafb78e56a646bfacebdd6ff4c5a;p=chaz%2Fopenbox diff --git a/src/openbox.hh b/src/openbox.hh index 9001db60..2b8e8b07 100644 --- a/src/openbox.hh +++ b/src/openbox.hh @@ -14,9 +14,8 @@ extern "C" { #include #include +#include "otk/display.hh" #include "otk/screeninfo.hh" -#include "otk/timerqueuemanager.hh" -#include "otk/property.hh" #include "otk/configuration.hh" #include "otk/eventdispatcher.hh" #include "otk/eventhandler.hh" @@ -74,6 +73,9 @@ public: typedef std::vector ScreenList; private: + //! The display on which Openbox is running + otk::Display _display; + // stuff that can be passed on the command line //! Path to the config file to use/in use /*! @@ -105,21 +107,6 @@ private: //! A list of all the managed screens ScreenList _screens; - //! Manages all timers for the application - /*! - Use of the otk::TimerQueueManager::fire funtion in this object ensures - that all timers fire when their times elapse. - */ - otk::TimerQueueManager _timermanager; - - //! Cached atoms on the display - /*! - This is a pointer because the Property class uses otk::Display::display - in its constructor, so, it needs to be initialized after the display - is initialized in this class' constructor. - */ - otk::Property *_property; - //! The action interface through which all user-available actions occur Actions *_actions; @@ -181,16 +168,6 @@ public: //! Returns the state of the window manager (starting, exiting, etc) inline RunState state() const { return _state; } - //! Returns the otk::TimerQueueManager for the application - /*! - All otk::Timer objects used in the application should be made to use this - otk::TimerQueueManager. - */ - inline otk::TimerQueueManager *timerManager() { return &_timermanager; } - - //! Returns the otk::Property instance for the window manager - inline const otk::Property *property() const { return _property; } - //! Returns the Actions instance for the window manager inline Actions *actions() const { return _actions; } @@ -200,7 +177,7 @@ public: //! Returns a managed screen inline Screen *screen(int num) { assert(num >= 0); assert(num < (signed)_screens.size()); - if (num >= screenCount()) + if (num < 0 || num >= screenCount()) return NULL; return _screens[num]; }