diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2015-09-21 14:52:47 +0200 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2015-09-21 14:52:47 +0200 |
commit | e7e9a1cfb9e52fb060cd0c01bb34e9567a04abbc (patch) | |
tree | c6b816e7ba8f9b659e1be415ebf1dac4262c3b82 /main/fltk/ewmh-crash.patch | |
parent | 452d447d89b3a3775b7f602d7352a8cfe8a0f9d4 (diff) | |
download | aports-e7e9a1cfb9e52fb060cd0c01bb34e9567a04abbc.tar.bz2 aports-e7e9a1cfb9e52fb060cd0c01bb34e9567a04abbc.tar.xz |
testing/*: move to main
Diffstat (limited to 'main/fltk/ewmh-crash.patch')
-rw-r--r-- | main/fltk/ewmh-crash.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/main/fltk/ewmh-crash.patch b/main/fltk/ewmh-crash.patch new file mode 100644 index 0000000000..6b7d08e1bb --- /dev/null +++ b/main/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; |