I believe we redraw the border in too many cases; likely a leftover from

the cc->pwin days - don't redraw on every unhide, resize, and mouse
move/resize Expose event (note, all Expose events trigger a redraw
anyway).

Tested with some finicky X apps I could think of, though I'm sure others
will find more - if so, and they 'lose' the border, please report!
This commit is contained in:
okan
2013-10-19 18:59:22 +00:00
parent a70b2d81af
commit 083a023f2c
2 changed files with 2 additions and 11 deletions

View File

@ -398,8 +398,6 @@ client_resize(struct client_ctx *cc, int reset)
xu_ewmh_set_net_wm_state(cc);
}
client_draw_border(cc);
XMoveResizeWindow(X_Dpy, cc->win, cc->geom.x,
cc->geom.y, cc->geom.w, cc->geom.h);
client_config(cc);
@ -495,7 +493,6 @@ client_unhide(struct client_ctx *cc)
cc->flags &= ~CLIENT_HIDDEN;
cc->state = NormalState;
xu_set_wm_state(cc->win, cc->state);
client_draw_border(cc);
}
void