mirror of
https://github.com/0intro/wmii
synced 2024-11-23 06:11:21 +03:00
Fix frame coloring issue which occurs with bloated apps.
This commit is contained in:
parent
16cdf68c70
commit
9fd22b12f9
5
event.c
5
event.c
@ -288,7 +288,7 @@ unmapnotify(XEvent *e) {
|
||||
|
||||
static void
|
||||
focusin(XEvent *e) {
|
||||
Client *c;
|
||||
Client *c, *old;
|
||||
XFocusChangeEvent *ev = &e->xfocus;
|
||||
|
||||
if(!((ev->detail == NotifyNonlinear)
|
||||
@ -300,6 +300,7 @@ focusin(XEvent *e) {
|
||||
return;
|
||||
|
||||
c = client_of_win(ev->window);
|
||||
old = screen->focus;
|
||||
if(c) {
|
||||
if(verbose) {
|
||||
fprintf(stderr, "screen->focus: %p => %p\n", screen->focus, c);
|
||||
@ -312,6 +313,8 @@ focusin(XEvent *e) {
|
||||
update_client_grab(c);
|
||||
if(c->sel)
|
||||
draw_frame(c->sel);
|
||||
if(old && old->sel)
|
||||
draw_frame(old->sel);
|
||||
}else if(ev->window == screen->barwin) {
|
||||
if(verbose) {
|
||||
fprintf(stderr, "screen->focus: %p => %p\n", screen->focus, c);
|
||||
|
Loading…
Reference in New Issue
Block a user