]> git.mdlowis.com Git - proto/labwc.git/commitdiff
Revert "menu: slightly slide menus opened from buttons"
authortokyo4j <hrak1529@gmail.com>
Sun, 8 Dec 2024 07:05:53 +0000 (16:05 +0900)
committerHiroaki Yamamoto <hrak1529@gmail.com>
Sun, 8 Dec 2024 07:55:16 +0000 (16:55 +0900)
With 2ade6a1, negative x-values can be passed to menu_configure() when the
window menu is opened from top-left button in a maximized window, but
wlr_output_layout_output_at() couldn't find the output for the coordinate
since it's out of the output layout, thus it just opened the menu without
updating its position.

As the next release is close and the visual improvement by 2ade6a1 is not
very impactful for UX, let's revert it for now.

src/action.c

index 195a91715d73178b341480e5e7ac28151ca79c23..9da1b796fb5474044f47f9767eab8b7cc9192465 100644 (file)
@@ -678,7 +678,6 @@ show_menu(struct server *server, struct view *view, struct cursor_context *ctx,
                        assert(ctx->node);
                        int ly;
                        wlr_scene_node_coords(ctx->node, &x, &ly);
-                       x -= server->theme->menu_border_width;
                }
        }