mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
fix menu/client placement in panning setups; XineramaQueryScreens gives
us the width of the psuedo screen, but here we need the edge instead (xmax/ymax); just re-use w/h here for now.
This commit is contained in:
parent
4ffe56b9a3
commit
e7b85cfb2f
2
client.c
2
client.c
@ -660,6 +660,8 @@ client_placecalc(struct client_ctx *cc)
|
|||||||
|
|
||||||
xu_ptr_getpos(sc->rootwin, &xmouse, &ymouse);
|
xu_ptr_getpos(sc->rootwin, &xmouse, &ymouse);
|
||||||
xine = screen_find_xinerama(sc, xmouse, ymouse);
|
xine = screen_find_xinerama(sc, xmouse, ymouse);
|
||||||
|
xine.w += xine.x;
|
||||||
|
xine.h += xine.y;
|
||||||
xmouse = MAX(xmouse, xine.x) - cc->geom.w / 2;
|
xmouse = MAX(xmouse, xine.x) - cc->geom.w / 2;
|
||||||
ymouse = MAX(ymouse, xine.y) - cc->geom.h / 2;
|
ymouse = MAX(ymouse, xine.y) - cc->geom.h / 2;
|
||||||
|
|
||||||
|
2
menu.c
2
menu.c
@ -394,6 +394,8 @@ menu_draw(struct screen_ctx *sc, struct menu_ctx *mc, struct menu_q *menuq,
|
|||||||
}
|
}
|
||||||
|
|
||||||
xine = screen_find_xinerama(sc, mc->x, mc->y);
|
xine = screen_find_xinerama(sc, mc->x, mc->y);
|
||||||
|
xine.w += xine.x;
|
||||||
|
xine.h += xine.y;
|
||||||
|
|
||||||
xsave = mc->x;
|
xsave = mc->x;
|
||||||
ysave = mc->y;
|
ysave = mc->y;
|
||||||
|
Loading…
Reference in New Issue
Block a user