Open yari-dog opened 3 weeks ago
what are you trying to achieve here? not sure why but some gravity pairings work as expected and some don't, not sure why, would have to dig into gtk/gtk-layer-shell this is not something that we can fix in gjs I think
I was trying to get the anchor of the menu to be north-east, and got carried away within sanity checking myself aha, but that does make sense. What I ended up finding with that test code was that menu_anchor is /always/ ignored, and widget_anchor is /always/ honoured (with menu_anchor always being 1 (north west))
When calling popup_at_window, passing it menu_ancho does not effect the placement of the menu, with it reverting to the equivalent of NORTH_WEST (1).
I've written a (pretty bad) widget setup to demonstrate this, where clicking the menu item will increment the menu_anchor and then the widget_anchor once menu_anchor loops back around to 1:
regardless of the value passed to menu_anchor, the menu will always behave as though it was set to 1. i've also attached the output of the two console.log calls