reverse the logic. makes more sense i think
This commit is contained in:
parent
861c829ee1
commit
829ce05c7c
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue