Function/field for distinguishing if a widget is using global/local coordinates. #3
2 changed files with 0 additions and 7 deletions
submenu: just don't adjust if there's no global coordinates, there's not much of another way
commit
d3751c0bf9
|
|
@ -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(r->wayland.popup->xdg_positioner, XDG_POSITIONER_ANCHOR_NONE);
|
||||||
xdg_positioner_set_anchor_rect(
|
xdg_positioner_set_anchor_rect(
|
||||||
r->wayland.popup->xdg_positioner, 0, 0, 1, 1);
|
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_positioner_set_offset(r->wayland.popup->xdg_positioner, x, y);
|
||||||
|
|
||||||
xdg_surface = topmost_parent->wayland.toplevel->xdg_surface;
|
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,
|
MwNy, rc.height - sz.height,
|
||||||
NULL);
|
NULL);
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
if(MwGetInteger(handle, MwNy) > sz.height) {
|
|
||||||
MwVaApply(handle,
|
|
||||||
MwNy, sz.height,
|
|
||||||
NULL);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
MwLLEndStateChange(handle->lowlevel);
|
MwLLEndStateChange(handle->lowlevel);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue