mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
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.
This commit is contained in:
parent
06eb13dfd9
commit
b8f53666bd
6
client.c
6
client.c
|
@ -695,10 +695,8 @@ client_placecalc(struct client_ctx *cc)
|
||||||
*/
|
*/
|
||||||
xslack = sc->view.w - cc->geom.w - cc->bwidth * 2;
|
xslack = sc->view.w - cc->geom.w - cc->bwidth * 2;
|
||||||
yslack = sc->view.h - cc->geom.h - cc->bwidth * 2;
|
yslack = sc->view.h - cc->geom.h - cc->bwidth * 2;
|
||||||
if (cc->size->x > 0)
|
cc->geom.x = MIN(cc->geom.x, xslack);
|
||||||
cc->geom.x = MIN(cc->size->x, xslack);
|
cc->geom.y = MIN(cc->geom.y, yslack);
|
||||||
if (cc->size->y > 0)
|
|
||||||
cc->geom.y = MIN(cc->size->y, yslack);
|
|
||||||
} else {
|
} else {
|
||||||
struct geom xine;
|
struct geom xine;
|
||||||
int xmouse, ymouse;
|
int xmouse, ymouse;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user