mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
Revert "menu: slightly slide menus opened from buttons"
With2ade6a1, 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 by2ade6a1is not very impactful for UX, let's revert it for now.
This commit is contained in:
parent
2ade6a1e85
commit
21bd5b0025
1 changed files with 0 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue