aboutsummaryrefslogtreecommitdiffstats
path: root/testing/fltk/ewmh-crash.patch
diff options
context:
space:
mode:
authorIsaac Dunham <ibid.ag@gmail.com>2014-11-18 21:41:36 -0800
committerNatanael Copa <ncopa@alpinelinux.org>2014-11-19 08:17:19 +0000
commit6a7ca203ef1b561069e17a3463e085d1eb7c8837 (patch)
treedce05ffb273e536e574fe32236757c6415152a64 /testing/fltk/ewmh-crash.patch
parent45a696e796150bfb88a2cda8a4fa3803ab23c27c (diff)
downloadaports-6a7ca203ef1b561069e17a3463e085d1eb7c8837.tar.bz2
aports-6a7ca203ef1b561069e17a3463e085d1eb7c8837.tar.xz
testing/fltk: update to 1.3.3
Diffstat (limited to 'testing/fltk/ewmh-crash.patch')
-rw-r--r--testing/fltk/ewmh-crash.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/testing/fltk/ewmh-crash.patch b/testing/fltk/ewmh-crash.patch
new file mode 100644
index 0000000000..6b7d08e1bb
--- /dev/null
+++ b/testing/fltk/ewmh-crash.patch
@@ -0,0 +1,23 @@
+commit 6bea02745202d86a10da82d34f1f6a9233267297
+Author: lauri <cand.svn@fltk.example.org>
+Date: Tue Nov 4 17:26:47 2014 +0000
+
+ 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: http://seriss.com/public/fltk/fltk/branches/branch-1.3@10434 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
+
+diff --git a/src/Fl_x.cxx b/src/Fl_x.cxx
+index 8e7100b..a0767a3 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;