From d3751c0bf9f3b3f776fed09e737b8721375a8916 Mon Sep 17 00:00:00 2001 From: IoIxD Date: Sun, 4 Jan 2026 18:25:33 -0700 Subject: [PATCH] submenu: just don't adjust if there's no global coordinates, there's not much of another way --- src/backend/wayland.c | 1 - src/widget/submenu.c | 6 ------ 2 files changed, 7 deletions(-) diff --git a/src/backend/wayland.c b/src/backend/wayland.c index 68aab8e..9169a10 100644 --- a/src/backend/wayland.c +++ b/src/backend/wayland.c @@ -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; diff --git a/src/widget/submenu.c b/src/widget/submenu.c index f05c573..8281550 100644 --- a/src/widget/submenu.c +++ b/src/widget/submenu.c @@ -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);