about summary refs log tree commit diff
path: root/menu.c
diff options
context:
space:
mode:
authorokan <okan>2013-01-07 21:53:23 +0000
committerokan <okan>2013-01-07 21:53:23 +0000
commite7b85cfb2f4d04e283d448cc3a09014e858eeb94 (patch)
tree037a51209b758fa23fced6747f8449406a7b66e6 /menu.c
parent4ffe56b9a3dfe958c1ad51a0064efe8094a306da (diff)
downloadcwm-e7b85cfb2f4d04e283d448cc3a09014e858eeb94.tar.gz
cwm-e7b85cfb2f4d04e283d448cc3a09014e858eeb94.tar.xz
cwm-e7b85cfb2f4d04e283d448cc3a09014e858eeb94.zip
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.
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c2
1 files changed, 2 insertions, 0 deletions
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;