[vim/vim] GTK4: mouse popup menu shows far from the pointer (PR #20260)

4 views
Skip to first unread message

mattn

unread,
May 20, 2026, 1:18:34 AM (2 days ago) May 20
to vim/vim, Subscribed

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


You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/20260

Commit Summary

  • 53d49d9 GTK4: mouse popup menu shows far from the pointer

File Changes

(1 file)

Patch Links:


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.Message ID: <vim/vim/pull/20260@github.com>

mattn

unread,
May 20, 2026, 8:56:45 PM (2 days ago) May 20
to vim/vim, Push

@mattn pushed 1 commit.

  • 5876ea1 GTK4: mouse popup menu blanks the drawing area and is mis-centred


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.Message ID: <vim/vim/pull/20260/before/31c4d0ab0c29165bf204863115d1c45c9874d2fb/after/5876ea100689e70b37dcd954083eba6e36b751be@github.com>

Christian Brabandt

unread,
May 21, 2026, 5:03:06 PM (17 hours ago) May 21
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#20260)

@lilydjwg ?


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.Message ID: <vim/vim/pull/20260/c4512737791@github.com>

Reply all
Reply to author
Forward
0 new messages