|
@ -2986,6 +2986,11 @@ xseturgency(int add) { |
|
|
|
|
|
|
|
|
void |
|
|
void |
|
|
focus(XEvent *ev) { |
|
|
focus(XEvent *ev) { |
|
|
|
|
|
XFocusChangeEvent *e = &ev->xfocus; |
|
|
|
|
|
|
|
|
|
|
|
if(e->mode == NotifyGrab) |
|
|
|
|
|
return; |
|
|
|
|
|
|
|
|
if(ev->type == FocusIn) { |
|
|
if(ev->type == FocusIn) { |
|
|
XSetICFocus(xw.xic); |
|
|
XSetICFocus(xw.xic); |
|
|
xw.state |= WIN_FOCUSED; |
|
|
xw.state |= WIN_FOCUSED; |
|
|