X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fopenbox.hh;h=baf9edebe906dc90dd290047bf1a8deab2d4326b;hb=d3b7c84d4c640face48dfb54d70de2bff1551429;hp=2feb8f0f90d05bad5bb122aab22041ab02064357;hpb=f25252a4849ab205856629480178946b2b454aa3;p=chaz%2Fopenbox diff --git a/src/openbox.hh b/src/openbox.hh index 2feb8f0f..baf9edeb 100644 --- a/src/openbox.hh +++ b/src/openbox.hh @@ -15,6 +15,7 @@ extern "C" { #include "otk/screeninfo.hh" #include "otk/timerqueuemanager.hh" +#include "otk/property.hh" #include "xeventhandler.hh" namespace ob { @@ -73,6 +74,14 @@ private: //! The class which will handle raw XEvents OBXEventHandler _xeventhandler; + //! Cached atoms on the display + /*! + This is a pointer because the OBProperty class uses otk::OBDisplay::display + in its constructor, so, it needs to be initialized after the display + is initialized in this class' constructor. + */ + otk::OBProperty *_property; + //! The running state of the window manager RunState _state; @@ -109,10 +118,12 @@ public: */ inline otk::OBTimerQueueManager *timerManager() { return &_timermanager; } + inline const otk::OBProperty *property() const { return _property; } + //! The main function of the Openbox class /*! This function should be called after instantiating the Openbox class. - Loops indefinately while handling all events in the application. + It loops indefinately while handling all events for the application. The Openbox::shutdown method will cause this function to exit. */ void eventLoop();