maybe better logic for looking for focus in's on clients
This commit is contained in:
parent
bfe974dbd0
commit
41da12cc5e
1 changed files with 8 additions and 3 deletions
|
@ -300,10 +300,15 @@ static gboolean wanted_focusevent(XEvent *e, gboolean in_client_only)
|
||||||
|
|
||||||
/* These are the ones we want.. */
|
/* These are the ones we want.. */
|
||||||
|
|
||||||
if (win == RootWindow(ob_display, ob_screen) && !in_client_only) {
|
if (win == RootWindow(ob_display, ob_screen)) {
|
||||||
|
/* If looking for a focus in on a client, then always return
|
||||||
|
FALSE for focus in's to the root window */
|
||||||
|
if (in_client_only)
|
||||||
|
return FALSE;
|
||||||
/* This means focus reverted off of a client */
|
/* This means focus reverted off of a client */
|
||||||
if (detail == NotifyPointerRoot || detail == NotifyDetailNone ||
|
else if (detail == NotifyPointerRoot ||
|
||||||
detail == NotifyInferior)
|
detail == NotifyDetailNone ||
|
||||||
|
detail == NotifyInferior)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
else
|
else
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
Loading…
Reference in a new issue