]> git.mdlowis.com Git - proto/labwc.git/commitdiff
menu: invert the y-offset of submenus applied by menu.overlap.y
authortokyo4j <hrak1529@gmail.com>
Mon, 25 Nov 2024 21:04:29 +0000 (06:04 +0900)
committerJohan Malm <johanmalm@users.noreply.github.com>
Mon, 25 Nov 2024 21:19:59 +0000 (21:19 +0000)
This follows Openbox's behavior.

src/menu/menu.c

index 13fef1e2c8c93f08f2cf14c98815c7aedd90b327..0cb00647f2edf3f7dbacf5e71c8e43d465edcef6 100644 (file)
@@ -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;
 }