From 4b98eac594c437a71a8f978ac332b21a8288a1f1 Mon Sep 17 00:00:00 2001 From: phillbush Date: Wed, 19 Aug 2020 20:39:22 -0300 Subject: [PATCH] fix menu placing --- pmenu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pmenu.c b/pmenu.c index 7c2b56d..744d5ec 100644 --- a/pmenu.c +++ b/pmenu.c @@ -921,14 +921,14 @@ setupmenupos(struct Menu *menu) if (x - mon.x >= pie.radius) { if (mon.x + mon.w - x >= pie.radius) - menu->x = x - pie.radius; + menu->x = x - pie.radius - pie.border; else if (mon.x + mon.w >= pie.fulldiameter) menu->x = mon.x + mon.w - pie.fulldiameter; } if (y - mon.y >= pie.radius) { if (mon.y + mon.h - y >= pie.radius) - menu->y = y - pie.radius; + menu->y = y - pie.radius - pie.border; else if (mon.y + mon.h >= pie.fulldiameter) menu->y = mon.y + mon.h - pie.fulldiameter; }