diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-01-08 09:05:38 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-01-08 09:05:38 +0000 |
| commit | b8f89ee368324f54a95f9ac8c5a24948365fb5ab (patch) | |
| tree | 4d990b766998cca31fa3fa3038b089220fa2e296 | |
| parent | d5cff9617cb8bf6416a1b574c111931e9e578b9f (diff) | |
ignore focus events from grabs
| -rw-r--r-- | otk/eventdispatcher.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/otk/eventdispatcher.cc b/otk/eventdispatcher.cc index 07164f0b..ad44fe2e 100644 --- a/otk/eventdispatcher.cc +++ b/otk/eventdispatcher.cc @@ -99,6 +99,9 @@ void OtkEventDispatcher::dispatchEvents(void) void OtkEventDispatcher::dispatchFocus(const XEvent &e) { + // ignore all focus changes from grabs + if (e.xfocus.mode != NotifyNormal) + return; if (e.type == FocusIn) { //printf("Got FocusIn!\n"); |
