Revert "menu: slightly slide menus opened from buttons"

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.
This commit is contained in:
tokyo4j 2024-12-08 16:05:53 +09:00 committed by Hiroaki Yamamoto
parent 2ade6a1e85
commit 21bd5b0025

View 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;
}
}