Improve popup positioning with move_to_rect()
I'm using the new gdk_window_move_to_rect()
API now with the gtk-3-24
branch, and there is one thing missing from it that would be nice to have for our (fairly complex) positioning with Builder's auto-completion window.
One thing I can't define is that I want GDK_ANCHOR_RESIZE_X
to be higher priority than GDK_ANCHOR_SLIDE_X
. This is important for situations where having the alignment of the anchor x/y is more important than reaching natural sizing.
Another issue I have is that to reposition a popup previously set with move_to_rect()
, I have to hide()
and re-show()
the window. This is problematic and has resulted in Builder having a workaround that uses a GtkOverlay for the completion results when running on Wayland (and a window when on X11).