diff options
author | Okan Demirmen <okan@cvs.openbsd.org> | 2009-01-16 15:24:15 +0000 |
---|---|---|
committer | Okan Demirmen <okan@cvs.openbsd.org> | 2009-01-16 15:24:15 +0000 |
commit | c1af2c0baf9c1eeccacf2c1dd727f5151fdb4bf4 (patch) | |
tree | 40cd91953031d3fe7c6e725effcb04a896b2eed8 /app/cwm/mousefunc.c | |
parent | 43c5c20221bd4c9a8724c4726ab6908666529bd5 (diff) |
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 'app/cwm/mousefunc.c')
-rw-r--r-- | app/cwm/mousefunc.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/app/cwm/mousefunc.c b/app/cwm/mousefunc.c index 4e6897f7e..25ec8374d 100644 --- a/app/cwm/mousefunc.c +++ b/app/cwm/mousefunc.c @@ -16,7 +16,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $Id: mousefunc.c,v 1.5 2009/01/11 18:34:46 okan Exp $ + * $Id: mousefunc.c,v 1.6 2009/01/16 15:24:14 okan Exp $ */ #include "headers.h" @@ -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; |