Skip to content

Commit

Permalink
fix menu placing
Browse files Browse the repository at this point in the history
  • Loading branch information
phillbush committed Aug 19, 2020
1 parent 2a6b09c commit 4b98eac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pmenu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 4b98eac

Please sign in to comment.