ignore much fewer focus events. only ignore focusout's from activating a grab
This commit is contained in:
parent
b8f89ee368
commit
93811226bb
1 changed files with 4 additions and 4 deletions
|
@ -99,10 +99,6 @@ void OtkEventDispatcher::dispatchEvents(void)
|
||||||
|
|
||||||
void OtkEventDispatcher::dispatchFocus(const XEvent &e)
|
void OtkEventDispatcher::dispatchFocus(const XEvent &e)
|
||||||
{
|
{
|
||||||
// ignore all focus changes from grabs
|
|
||||||
if (e.xfocus.mode != NotifyNormal)
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (e.type == FocusIn) {
|
if (e.type == FocusIn) {
|
||||||
//printf("Got FocusIn!\n");
|
//printf("Got FocusIn!\n");
|
||||||
|
|
||||||
|
@ -113,6 +109,10 @@ void OtkEventDispatcher::dispatchFocus(const XEvent &e)
|
||||||
} else if (e.type == FocusOut) {
|
} else if (e.type == FocusOut) {
|
||||||
//printf("Got FocusOut!\n");
|
//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
|
// FocusOut events just make us look for FocusIn events. They are ignored
|
||||||
// otherwise.
|
// otherwise.
|
||||||
XEvent fi;
|
XEvent fi;
|
||||||
|
|
Loading…
Reference in a new issue