diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-01-12 00:30:36 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-01-12 00:30:36 +0000 |
| commit | 870f6cca3dc930614e21b747424cd572e869ab16 (patch) | |
| tree | 5448950fdba68159132b249f79cc16027f5a5a36 | |
| parent | fffcc1ee58413295c4baab2a49fe76b1266cf936 (diff) | |
ignore focus changes from grabs always.
| -rw-r--r-- | otk/eventdispatcher.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/otk/eventdispatcher.cc b/otk/eventdispatcher.cc index d8bd539c..ff3b8b64 100644 --- a/otk/eventdispatcher.cc +++ b/otk/eventdispatcher.cc @@ -99,6 +99,10 @@ void EventDispatcher::dispatchEvents(void) void EventDispatcher::dispatchFocus(const XEvent &e) { + // ignore focus changes from grabs + if (e.xfocus.mode == NotifyGrab) + return; + if (e.type == FocusIn) { //printf("Got FocusIn!\n"); @@ -109,10 +113,6 @@ void EventDispatcher::dispatchFocus(const XEvent &e) } else if (e.type == FocusOut) { //printf("Got FocusOut!\n"); - // ignore FocusOut changes from grabs - if (e.xfocus.mode == NotifyGrab) - return; - // FocusOut events just make us look for FocusIn events. They are ignored // otherwise. XEvent fi; |
