aboutsummaryrefslogtreecommitdiff
path: root/www/dillo2
diff options
context:
space:
mode:
authorAntoine Brodin <antoine@FreeBSD.org>2015-02-10 14:55:18 +0000
committerAntoine Brodin <antoine@FreeBSD.org>2015-02-10 14:55:18 +0000
commit66ccef54c47a3b3fd405898126b602482d123ea4 (patch)
treef9d66d9d508b2c980f3d64ca315fe0116d4ee167 /www/dillo2
parent8bb1d1c4acf1e2afb7ad1cca43471aa9da9aeea4 (diff)
downloadports-66ccef54c47a3b3fd405898126b602482d123ea4.tar.gz
ports-66ccef54c47a3b3fd405898126b602482d123ea4.zip
Notes
Diffstat (limited to 'www/dillo2')
-rw-r--r--www/dillo2/files/patch-dw_fltkviewbase.cc40
1 files changed, 40 insertions, 0 deletions
diff --git a/www/dillo2/files/patch-dw_fltkviewbase.cc b/www/dillo2/files/patch-dw_fltkviewbase.cc
new file mode 100644
index 000000000000..b20d0fb413fa
--- /dev/null
+++ b/www/dillo2/files/patch-dw_fltkviewbase.cc
@@ -0,0 +1,40 @@
+
+# HG changeset patch
+# User Jorge Arellano Cid <jcid@dillo.org>
+# Date 1416942594 0
+# Node ID 630f02e6341e2ee830de042a811a62491c0a7a56
+# Parent 5edad033981ff7dfc1886586dd0ef0c252d86fa3
+Fix a problem with FLTK's fl_oldfocus variable
+
+http://lists.dillo.org/pipermail/dillo-dev/2014-November/010299.html
+
+and, from commit text for changeset eb902ac9fc66
+"Starting with fltk-1.3.3, we can't use fl_oldfocus, this patch
+fixes this problem.
+
+IOW. this patch is necessary to link with fltk-1.3.3."
+
+diff -r 5edad033981f -r 630f02e6341e dw/fltkviewbase.cc
+--- dw/fltkviewbase.cc.orig Wed Apr 09 16:32:52 2014 -0300
++++ dw/fltkviewbase.cc Tue Nov 25 19:09:54 2014 +0000
+@@ -27,8 +27,6 @@
+ #include <stdio.h>
+ #include "../lout/msg.h"
+
+-extern Fl_Widget* fl_oldfocus;
+-
+ using namespace lout::object;
+ using namespace lout::container::typed;
+
+@@ -364,7 +362,9 @@
+ }
+ return 1;
+ case FL_UNFOCUS:
+- focused_child = fl_oldfocus;
++ // FLTK delivers UNFOCUS to the previously focused widget
++ if (find(Fl::focus()) < children())
++ focused_child = Fl::focus(); // remember the focused child!
+ return 0;
+ case FL_KEYBOARD:
+ if (Fl::event_key() == FL_Tab)
+