Client/Event: Fix raise with max flag and use flag IgnoreNextExose instead XQueryPointer for raise in client_focus

This commit is contained in:
Martin Duquesnoy
2011-06-09 18:13:05 +02:00
parent 13ac8cfa82
commit 2a30083520
4 changed files with 20 additions and 20 deletions

View File

@@ -368,11 +368,16 @@ enternotify(XEvent *e)
Client *c;
int n;
if((ev->mode != NotifyNormal
|| ev->detail == NotifyInferior)
&& ev->window != ROOT)
if((ev->mode != NotifyNormal || ev->detail == NotifyInferior)
&& ev->window != ROOT)
return;
if(tags[selscreen][seltag[selscreen]].flags & IgnoreNextExpose)
{
tags[selscreen][seltag[selscreen]].flags &= ~IgnoreNextExpose;
return;
}
/* Don't handle EnterNotify event if it's about systray */
if(systray_find(ev->window) || ev->window == traywin)
return;