diff options
author | Okan Demirmen <okan@cvs.openbsd.org> | 2013-10-19 18:59:23 +0000 |
---|---|---|
committer | Okan Demirmen <okan@cvs.openbsd.org> | 2013-10-19 18:59:23 +0000 |
commit | 45cecdb1b91fee2d0cb169d1f5d2ab6f8dd285a6 (patch) | |
tree | 7d8f07cef0d7ac875847ca7935cfcab817585595 /app/cwm/client.c | |
parent | bf01af9fdcfffe33bae2c8ace2ebd3bd22b61e79 (diff) |
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!
Diffstat (limited to 'app/cwm/client.c')
-rw-r--r-- | app/cwm/client.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/app/cwm/client.c b/app/cwm/client.c index 100439082..5b3eb5c92 100644 --- a/app/cwm/client.c +++ b/app/cwm/client.c @@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: client.c,v 1.138 2013/10/19 00:24:54 okan Exp $ + * $OpenBSD: client.c,v 1.139 2013/10/19 18:59:22 okan Exp $ */ #include <sys/param.h> @@ -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 |