projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
861c829
)
reverse the logic. makes more sense i think
author
Dana Jansens
<danakj@orodu.net>
Tue, 3 Dec 2002 23:56:04 +0000
(23:56 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Tue, 3 Dec 2002 23:56:04 +0000
(23:56 +0000)
otk/eventdispatcher.cc
patch
|
blob
|
history
diff --git
a/otk/eventdispatcher.cc
b/otk/eventdispatcher.cc
index 30996de003250ba9c5ce3745cc1a435a9378c673..4120192498230d4441248b00cf91f7c45ec728b5 100644
(file)
--- a/
otk/eventdispatcher.cc
+++ b/
otk/eventdispatcher.cc
@@
-44,10
+44,10
@@
void OtkEventDispatcher::dispatchEvents(void)
XNextEvent(OBDisplay::display, &e);
it = _map.find(e.xany.window);
- if (it == _map.end())
- handler = _fallback;
- else
+ if (it != _map.end())
handler = it->second;
+ else
+ handler = _fallback;
if (handler)
handler->handle(e);