]> git.mdlowis.com Git - proto/labwc.git/commit
menu: fix menus disappearing when opening pipemenu
authortokyo4j <hrak1529@gmail.com>
Wed, 13 Nov 2024 23:14:11 +0000 (08:14 +0900)
committerJohan Malm <johanmalm@users.noreply.github.com>
Thu, 14 Nov 2024 06:11:13 +0000 (06:11 +0000)
commit10ee838c3b4768f9d1c98ba0e1c9712eb0b30ea1
tree301f23aeceea30cdf2125068012a21cf2be295ca
parent36e099fc93b3caf87e7f390a732fcec69373de8c
menu: fix menus disappearing when opening pipemenu

Commit 7651531 introduced a regression: `menu_update_scene()` which
re-creates a menu scene was called for all the menus when a pipemenu is
created, so the menus (parent of the pipemenu) were always moved to (0,0)
and hidden, and the pipemenu was incorrectly positioned.

This commit fixes it by calling `menu_update_scene()` only for the
pipemenu when it's created.
src/menu/menu.c