From: tokyo4j Date: Mon, 25 Nov 2024 21:04:29 +0000 (+0900) Subject: menu: invert the y-offset of submenus applied by menu.overlap.y X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=45646c694fc2b6115e9135b595f068a438745162;p=proto%2Flabwc.git menu: invert the y-offset of submenus applied by menu.overlap.y This follows Openbox's behavior. --- diff --git a/src/menu/menu.c b/src/menu/menu.c index 13fef1e2..0cb00647 100644 --- a/src/menu/menu.c +++ b/src/menu/menu.c @@ -854,7 +854,7 @@ get_submenu_position(struct menuitem *item, enum menu_align align) pos.x += menu->size.width - theme->menu_overlap_x - theme->menu_border_width; } - pos.y += item->tree->node.y - theme->menu_overlap_y + pos.y += item->tree->node.y + theme->menu_overlap_y - theme->menu_border_width; return pos; }