summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/FbAtoms.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/FbAtoms.cc b/src/FbAtoms.cc
index 8a7034d..0271a56 100644
--- a/src/FbAtoms.cc
+++ b/src/FbAtoms.cc
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: FbAtoms.cc,v 1.7 2003/04/26 18:56:02 fluxgen Exp $ 22// $Id: FbAtoms.cc,v 1.8 2003/05/13 11:47:29 fluxgen Exp $
23 23
24#include "FbAtoms.hh" 24#include "FbAtoms.hh"
25#include "App.hh" 25#include "App.hh"
@@ -52,6 +52,8 @@ FbAtoms *FbAtoms::instance() {
52 52
53void FbAtoms::initAtoms() { 53void FbAtoms::initAtoms() {
54 Display *display = FbTk::App::instance()->display(); 54 Display *display = FbTk::App::instance()->display();
55 if (display == 0)
56 return;
55 57
56 xa_wm_protocols = XInternAtom(display, "WM_PROTOCOLS", False); 58 xa_wm_protocols = XInternAtom(display, "WM_PROTOCOLS", False);
57 xa_wm_state = XInternAtom(display, "WM_STATE", False); 59 xa_wm_state = XInternAtom(display, "WM_STATE", False);