aboutsummaryrefslogtreecommitdiff
path: root/dw/fltkviewbase.cc
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2014-11-18 13:30:06 +0100
committerSebastian Geerken <devnull@localhost>2014-11-18 13:30:06 +0100
commitd9fba2910501b62b73d375a8a5e67dea3f1deccf (patch)
treeac967d9157a59e6dd2ed90814b03464a475e18bf /dw/fltkviewbase.cc
parent1831b70de6931f95b30d78bab7c874cd5d70c821 (diff)
parent2db5a9e3e790863db2f67e727512f2373d4c82dc (diff)
Merge with main repo.
Diffstat (limited to 'dw/fltkviewbase.cc')
-rw-r--r--dw/fltkviewbase.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/dw/fltkviewbase.cc b/dw/fltkviewbase.cc
index 30a19d58..f7e331fc 100644
--- a/dw/fltkviewbase.cc
+++ b/dw/fltkviewbase.cc
@@ -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;
@@ -71,7 +69,7 @@ FltkViewBase::FltkViewBase (int x, int y, int w, int h, const char *label):
canvasHeight = 1;
bgColor = FL_WHITE;
mouse_x = mouse_y = 0;
- focused_child = NULL;
+ // focused_child = NULL;
exposeArea = NULL;
if (backBuffer == NULL) {
backBuffer = new BackBuffer ();
@@ -357,6 +355,8 @@ int FltkViewBase::handle (int event)
case FL_LEAVE:
theLayout->leaveNotify (this, getDwButtonState ());
break;
+#if 0
+ // BUG: starting with fltk-1.3.3, we can't use fl_oldfocus.
case FL_FOCUS:
if (focused_child && find(focused_child) < children()) {
/* strangely, find() == children() if the child is not found */
@@ -366,6 +366,7 @@ int FltkViewBase::handle (int event)
case FL_UNFOCUS:
focused_child = fl_oldfocus;
return 0;
+#endif
case FL_KEYBOARD:
if (Fl::event_key() == FL_Tab)
return manageTabToFocus();