diff options
author | okan <okan> | 2009-01-16 15:24:14 +0000 |
---|---|---|
committer | okan <okan> | 2009-01-16 15:24:14 +0000 |
commit | ec8e6052ba902d2b6afced31008aad015d38f062 (patch) | |
tree | 68c77d7e466ced3867647a355e86bb4dc28a0a67 /mousefunc.c | |
parent | 5c757cc7f420f58112d3e2af7a6f124994bcbe23 (diff) | |
download | cwm-ec8e6052ba902d2b6afced31008aad015d38f062.tar.gz cwm-ec8e6052ba902d2b6afced31008aad015d38f062.tar.xz cwm-ec8e6052ba902d2b6afced31008aad015d38f062.zip |
remove pwin, bringing us to one client, one window. we no longer have
to push attributes around, so things get a lot simplier, while fixing a few issues in the meantime; original suggestion by Edd Barrett many many moons ago. annoying window placement and race, found in c2k8 by todd, fix by oga! lots of feedback from todd and oga - thanks! "commit that bad boy" oga@
Diffstat (limited to 'mousefunc.c')
-rw-r--r-- | mousefunc.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/mousefunc.c b/mousefunc.c index 78768d3..aa12722 100644 --- a/mousefunc.c +++ b/mousefunc.c @@ -117,16 +117,11 @@ mousefunc_window_resize(struct client_ctx *cc, void *arg) /* Recompute window output */ _mousefunc_sweep_draw(cc, dx, dy); - XMoveResizeWindow(X_Dpy, cc->pwin, + XMoveResizeWindow(X_Dpy, cc->win, cc->geom.x - cc->bwidth, cc->geom.y - cc->bwidth, cc->geom.width + cc->bwidth * 2, cc->geom.height + cc->bwidth * 2); - XMoveResizeWindow(X_Dpy, cc->win, - cc->bwidth, cc->bwidth, - cc->geom.width, cc->geom.height); - - client_do_shape(cc); break; case ButtonRelease: XUnmapWindow(X_Dpy, sc->menuwin); @@ -172,7 +167,7 @@ mousefunc_window_move(struct client_ctx *cc, void *arg) cc->geom.x = x + (ev.xmotion.x - mx); cc->geom.y = y + (ev.xmotion.y - my); - XMoveWindow(X_Dpy, cc->pwin, + XMoveWindow(X_Dpy, cc->win, cc->geom.x - cc->bwidth, cc->geom.y - cc->bwidth); break; |