Fix focus bug.

This commit is contained in:
Kris Maglione 2007-02-18 12:33:17 -05:00
parent 4044a4c167
commit bd3891ced3
1 changed files with 6 additions and 0 deletions

View File

@ -276,6 +276,9 @@ focusin(XEvent *e) {
Client *c;
XFocusChangeEvent *ev = &e->xfocus;
if(ev->detail == NotifyPointer)
return;
c = client_of_win(ev->window);
if(c) {
if(verbose) {
@ -322,6 +325,9 @@ focusout(XEvent *e) {
Client *c;
XFocusChangeEvent *ev = &e->xfocus;
if(ev->detail == NotifyPointer)
return;
c = client_of_win(ev->window);
if(c)
update_client_grab(c);