The right-click context menu (mousemodel=popup) showed up at the center of the drawing area instead of at the pointer, and ended up off-screen when the window was maximized.
gui_mch_show_popupmenu() called gtk_popover_popup() without setting a pointing-to rectangle, so GtkPopover used its default position. This patch queries the current pointer position with gdk_surface_get_device_position() (translated into drawarea coordinates) and anchors the popover there. The same synchronous query also gives gui_mch_getmouse() a real value instead of always returning 0,0.
Fixes #20255
https://github.com/vim/vim/pull/20260
(1 file)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
@mattn pushed 1 commit.
—
View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()