ignore focus changes from grabs always.
This commit is contained in:
parent
fffcc1ee58
commit
870f6cca3d
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue