summaryrefslogtreecommitdiff
path: root/otk/eventdispatcher.cc
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-12-26 17:22:53 +0000
committerDana Jansens <danakj@orodu.net>2002-12-26 17:22:53 +0000
commit2b2f81b93c89c2a2d6abc3b12dee66b8e2a0452d (patch)
tree2705227033d83d5fc9e1bbbde6143c7c6ab96fb7 /otk/eventdispatcher.cc
parent5029fc97c81c25c8934989722985e772079bc166 (diff)
support the button pressed resources better
Diffstat (limited to 'otk/eventdispatcher.cc')
-rw-r--r--otk/eventdispatcher.cc5
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 {