mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-17 22:54:07 +00:00
submenu: just don't adjust if there's no global coordinates, there's not much of another way
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user