summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLauri Kasanen <cand@gmx.com>2014-11-04 17:26:47 +0000
committerLauri Kasanen <cand@gmx.com>2014-11-04 17:26:47 +0000
commit4c811151c09447a8cfd6578e3a5b43d1ce4fc72b (patch)
tree3980ade43ebd791861aeb765cce42974b5e7a712
parentdf31569ac45157f097a601071c8225e50256040b (diff)
The EWMH check requires an open display.
Fixes a crash when a program calls take_focus() before any window has been show()n. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10434 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--src/Fl_x.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Fl_x.cxx b/src/Fl_x.cxx
index 8e7100b94..a0767a3a1 100644
--- a/src/Fl_x.cxx
+++ b/src/Fl_x.cxx
@@ -2211,6 +2211,7 @@ int Fl_X::ewmh_supported() {
static int result = -1;
if (result == -1) {
+ fl_open_display();
result = 0;
unsigned long nitems;
unsigned long *words = 0;