From 028326e24d7bb15a9c17b4c7e63a84b8b3af8c9c Mon Sep 17 00:00:00 2001 From: okan Date: Sat, 1 Feb 2014 19:28:46 +0000 Subject: Take menu's bwidth into account for position/size; reported by Thomas Adam. --- menu.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/menu.c b/menu.c index 9f9d5aa..1e8c1fb 100644 --- a/menu.c +++ b/menu.c @@ -16,7 +16,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: menu.c,v 1.74 2014/01/21 15:42:45 okan Exp $ + * $OpenBSD: menu.c,v 1.75 2014/02/01 19:28:46 okan Exp $ */ #include @@ -382,8 +382,8 @@ menu_draw(struct menu_ctx *mc, struct menu_q *menuq, struct menu_q *resultq) } xine = screen_find_xinerama(sc, mc->x, mc->y, CWM_GAP); - xine.w += xine.x; - xine.h += xine.y; + xine.w += xine.x - Conf.bwidth * 2; + xine.h += xine.y - Conf.bwidth * 2; xsave = mc->x; ysave = mc->y; -- cgit v1.2.3-2-gb3c3