summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/FbTk/App.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/FbTk/App.cc b/src/FbTk/App.cc
index 3daf61a..18c6e56 100644
--- a/src/FbTk/App.cc
+++ b/src/FbTk/App.cc
@@ -40,6 +40,10 @@ App::App(const char *displayname):m_done(false) {
40 if (s_app != 0) 40 if (s_app != 0)
41 throw std::string("Can't create more than one instance of FbTk::App"); 41 throw std::string("Can't create more than one instance of FbTk::App");
42 s_app = this; 42 s_app = this;
43 // this allows the use of std::string.c_str(), which returns
44 // a blank string, rather than a null string, so we make them equivalent
45 if (displayname != 0 && displayname[0] == '\0')
46 displayname = 0;
43 m_display = XOpenDisplay(displayname); 47 m_display = XOpenDisplay(displayname);
44} 48}
45 49