diff options
author | Okan Demirmen <okan@cvs.openbsd.org> | 2013-11-01 21:54:21 +0000 |
---|---|---|
committer | Okan Demirmen <okan@cvs.openbsd.org> | 2013-11-01 21:54:21 +0000 |
commit | 63d6a6e3549569e23fe35bf481e4f5e5a58c1ac6 (patch) | |
tree | ccf12270301ce0eab7f08e79812593127a7ee49b /app/cwm/client.c | |
parent | 559429464e071e30487a8b130f8abe5055c1e2f1 (diff) |
x/y from XSizeHints are obsolete (and have been for a long time), so
instead use x/y from XWindowAttributes when USPosition|PPosition are
set.
Diffstat (limited to 'app/cwm/client.c')
-rw-r--r-- | app/cwm/client.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/app/cwm/client.c b/app/cwm/client.c index cc2ad3e95..294630ca6 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.143 2013/11/01 14:07:19 okan Exp $ + * $OpenBSD: client.c,v 1.144 2013/11/01 21:54:20 okan Exp $ */ #include <sys/param.h> @@ -695,10 +695,8 @@ client_placecalc(struct client_ctx *cc) */ xslack = sc->view.w - cc->geom.w - cc->bwidth * 2; yslack = sc->view.h - cc->geom.h - cc->bwidth * 2; - if (cc->size->x > 0) - cc->geom.x = MIN(cc->size->x, xslack); - if (cc->size->y > 0) - cc->geom.y = MIN(cc->size->y, yslack); + cc->geom.x = MIN(cc->geom.x, xslack); + cc->geom.y = MIN(cc->geom.y, yslack); } else { struct geom xine; int xmouse, ymouse; |