Function/field for distinguishing if a widget is using global/local coordinates. #3

Merged
IoI_xD merged 2 commits from coords into master 2026-01-05 10:25:58 +09:00
2 changed files with 0 additions and 7 deletions
Showing only changes of commit d3751c0bf9 - Show all commits

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

IoIxD 2026-01-04 18:25:33 -07:00

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);