menu: invert the y-offset of submenus applied by menu.overlap.y

This follows Openbox's behavior.
This commit is contained in:
tokyo4j 2024-11-26 06:04:29 +09:00 committed by Johan Malm
parent d70040c750
commit 45646c694f

View file

@ -854,7 +854,7 @@ get_submenu_position(struct menuitem *item, enum menu_align align)
pos.x += menu->size.width - theme->menu_overlap_x pos.x += menu->size.width - theme->menu_overlap_x
- theme->menu_border_width; - 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; - theme->menu_border_width;
return pos; return pos;
} }