mirror of
https://github.com/0intro/wmii
synced 2025-02-12 20:34:39 +03:00
Fix focus bug.
This commit is contained in:
parent
4044a4c167
commit
bd3891ced3
6
event.c
6
event.c
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user