summaryrefslogtreecommitdiff
path: root/src/BaseDisplay.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/BaseDisplay.hh')
-rw-r--r--src/BaseDisplay.hh8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/BaseDisplay.hh b/src/BaseDisplay.hh
index cc39063..8a3b464 100644
--- a/src/BaseDisplay.hh
+++ b/src/BaseDisplay.hh
@@ -22,12 +22,13 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: BaseDisplay.hh,v 1.31 2002/11/15 11:57:33 fluxgen Exp $ 25// $Id: BaseDisplay.hh,v 1.32 2002/11/26 16:05:34 fluxgen Exp $
26 26
27#ifndef BASEDISPLAY_HH 27#ifndef BASEDISPLAY_HH
28#define BASEDISPLAY_HH 28#define BASEDISPLAY_HH
29 29
30#include "NotCopyable.hh" 30#include "NotCopyable.hh"
31#include "App.hh"
31#include "EventHandler.hh" 32#include "EventHandler.hh"
32 33
33#include <X11/Xlib.h> 34#include <X11/Xlib.h>
@@ -52,7 +53,7 @@ void bexec(const char *command, char *displaystring);
52/** 53/**
53 Singleton class to manage display connection 54 Singleton class to manage display connection
54*/ 55*/
55class BaseDisplay:private NotCopyable, FbTk::EventHandler<XEvent> 56class BaseDisplay:public FbTk::App, private FbTk::NotCopyable, FbTk::EventHandler<XEvent>
56{ 57{
57public: 58public:
58 BaseDisplay(const char *app_name, const char *display_name = 0); 59 BaseDisplay(const char *app_name, const char *display_name = 0);
@@ -92,7 +93,7 @@ public:
92 inline bool isStartup() const { return m_startup; } 93 inline bool isStartup() const { return m_startup; }
93 94
94 95
95 static Display *getXDisplay() { return s_display; } 96 static Display *getXDisplay() { return App::instance()->display(); }
96 97
97 inline const char *getXDisplayName() const { return m_display_name; } 98 inline const char *getXDisplayName() const { return m_display_name; }
98 inline const char *getApplicationName() const { return m_app_name; } 99 inline const char *getApplicationName() const { return m_app_name; }
@@ -117,7 +118,6 @@ private:
117 } shape; 118 } shape;
118 119
119 bool m_startup, m_shutdown; 120 bool m_startup, m_shutdown;
120 static Display *s_display;
121 121
122 typedef std::vector<ScreenInfo *> ScreenInfoList; 122 typedef std::vector<ScreenInfo *> ScreenInfoList;
123 ScreenInfoList screenInfoList; 123 ScreenInfoList screenInfoList;