patch: click elsewhere on page, fltk widget loses focus
{my usual dw disclaimer}, but it's been working just fine so far.
On Sun, Oct 19, 2008 at 12:33:05PM +0000, corvid wrote:
{my usual dw disclaimer}, but it's been working just fine so far.
--- dillo2/dw/fltkviewbase.cc 2008-10-16 21:13:19.000000000 +0000 +++ dillo2-sup/dw/fltkviewbase.cc 2008-10-19 01:54:31.000000000 +0000 @@ -204,6 +204,10 @@ int FltkViewBase::handle (int event) translateViewYToCanvasY (event_y ()), getDwButtonState (), event_button ()); //printf ("PUSH => %s\n", processed ? "true" : "false"); + if (processed) { + /* pressed dw content; fltk widgets should no longer have focus */ + ::fltk::focus(NULL); + } return processed ? true : Group::handle (event);
case RELEASE:
Works fine for me. Cheers, Johannes
participants (3)
-
corvid@lavabit.com
-
jcid@dillo.org
-
Johannes.Hofmann@gmx.de