Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Feb 2015 14:55:19 +0000 (UTC)
From:      Antoine Brodin <antoine@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r378778 - head/www/dillo2/files
Message-ID:  <201502101455.t1AEtJYw043041@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: antoine
Date: Tue Feb 10 14:55:18 2015
New Revision: 378778
URL: https://svnweb.freebsd.org/changeset/ports/378778
QAT: https://qat.redports.org/buildarchive/r378778/

Log:
  Add an upstream patch allowing to build with fltk 1.3.3
  
  Submitted by:	danfe

Added:
  head/www/dillo2/files/
  head/www/dillo2/files/patch-dw_fltkviewbase.cc   (contents, props changed)

Added: head/www/dillo2/files/patch-dw_fltkviewbase.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/dillo2/files/patch-dw_fltkviewbase.cc	Tue Feb 10 14:55:18 2015	(r378778)
@@ -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)
+



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201502101455.t1AEtJYw043041>