submenu: just don't adjust if there's no global coordinates, there's not much of another way

This commit is contained in:
IoIxD
2026-01-04 18:25:33 -07:00
parent 54cdd85015
commit d3751c0bf9
2 changed files with 0 additions and 7 deletions

View File

@@ -1299,7 +1299,6 @@ static void setup_popup(MwLL r, int x, int y) {
xdg_positioner_set_anchor(r->wayland.popup->xdg_positioner, XDG_POSITIONER_ANCHOR_NONE);
xdg_positioner_set_anchor_rect(
r->wayland.popup->xdg_positioner, 0, 0, 1, 1);
printf("%d, %d\n", x, y);
xdg_positioner_set_offset(r->wayland.popup->xdg_positioner, x, y);
xdg_surface = topmost_parent->wayland.toplevel->xdg_surface;

View File

@@ -189,12 +189,6 @@ static void mwSubMenuAppearImpl(MwWidget handle, MwMenu menu, MwPoint* point, in
MwNy, rc.height - sz.height,
NULL);
}
} else {
if(MwGetInteger(handle, MwNy) > sz.height) {
MwVaApply(handle,
MwNy, sz.height,
NULL);
}
}
MwLLEndStateChange(handle->lowlevel);