diff options
Diffstat (limited to 'otk/eventdispatcher.cc')
| -rw-r--r-- | otk/eventdispatcher.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/otk/eventdispatcher.cc b/otk/eventdispatcher.cc index 4a70c857..c80f3857 100644 --- a/otk/eventdispatcher.cc +++ b/otk/eventdispatcher.cc @@ -78,8 +78,10 @@ void OtkEventDispatcher::dispatchEvents(void) // any other types are not ones we're interested in if (e.xfocus.detail == NotifyNonlinear) { if (e.xfocus.window != focus) { - unfocus = focus; + if (focus) + unfocus = focus; focus = e.xfocus.window; + printf("FocusIn focus=%lx unfocus=%lx\n", focus, unfocus); } } } else if (e.type == FocusOut) { @@ -88,6 +90,7 @@ void OtkEventDispatcher::dispatchEvents(void) if (e.xfocus.window == focus) { unfocus = focus; focus = None; + printf("FocusIn focus=%lx unfocus=%lx\n", focus, unfocus); } } } else { |
