From 4e7878b6c81f71a76583a323008e0e5809ff4b56 Mon Sep 17 00:00:00 2001 From: okan Date: Mon, 7 Jan 2013 21:53:23 +0000 Subject: 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. --- client.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'client.c') diff --git a/client.c b/client.c index 0624479..ea43d1b 100644 --- a/client.c +++ b/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.116 2013/01/06 01:01:26 okan Exp $ + * $OpenBSD: client.c,v 1.117 2013/01/07 21:53:23 okan Exp $ */ #include @@ -660,6 +660,8 @@ client_placecalc(struct client_ctx *cc) xu_ptr_getpos(sc->rootwin, &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; ymouse = MAX(ymouse, xine.y) - cc->geom.h / 2; -- cgit v1.2.3-2-gb3c3