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);
|
XNextEvent(OBDisplay::display, &e);
|
||||||
it = _map.find(e.xany.window);
|
it = _map.find(e.xany.window);
|
||||||
|
|
||||||
if (it == _map.end())
|
if (it != _map.end())
|
||||||
handler = _fallback;
|
|
||||||
else
|
|
||||||
handler = it->second;
|
handler = it->second;
|
||||||
|
else
|
||||||
|
handler = _fallback;
|
||||||
|
|
||||||
if (handler)
|
if (handler)
|
||||||
handler->handle(e);
|
handler->handle(e);
|
||||||
|
|
Loading…
Reference in a new issue