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:
d5cff96
)
ignore focus events from grabs
author
Dana Jansens
<danakj@orodu.net>
Wed, 8 Jan 2003 09:05:38 +0000
(09:05 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Wed, 8 Jan 2003 09:05:38 +0000
(09:05 +0000)
otk/eventdispatcher.cc
patch
|
blob
|
history
diff --git
a/otk/eventdispatcher.cc
b/otk/eventdispatcher.cc
index 07164f0b03599bfc35b73e690686b0adefc3b84b..ad44fe2e21e70aa5bf30f4038a7c89ab72502101 100644
(file)
--- 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");