about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--client.c2
-rw-r--r--menu.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/client.c b/client.c
index 530a077..6fcfb88 100644
--- a/client.c
+++ b/client.c
@@ -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;
 
diff --git a/menu.c b/menu.c
index f0d8f54..b392a08 100644
--- a/menu.c
+++ b/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.w += xine.x;
+	xine.h += xine.y;
 
 	xsave = mc->x;
 	ysave = mc->y;