[vim/vim] GVim [Wayland] window shift (Issue #15517)

49 views
Skip to first unread message

phouchg42

unread,
Aug 17, 2024, 4:02:38 AM8/17/24
to vim/vim, Subscribed

Steps to reproduce

Start GVim with env GVIM_ENABLE_WAYLAND=1.

Expected behaviour

If you start GVim with env GVIM_ENABLE_WAYLAND=1 its window should have equal indents on all sides, but it has strange shift as shown in the image (colored area fixed with the GTK Inspector).

screenshot.png (view on web)

Version of Vim

9.1.0672

Environment

OS: Arch
DE: Gnome 46

Logs and stack traces

No response


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/15517@github.com>

Christian Brabandt

unread,
Sep 1, 2024, 9:47:41 AM9/1/24
to vim/vim, Subscribed

I believe this happens, because the window is slightly larger than what can be displayed using the number of rows/columns for your font size. I don't know how to make the window resize automatically to the required size.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/15517/2323347474@github.com>

John M Devin

unread,
Sep 1, 2024, 1:26:00 PM9/1/24
to vim/vim, Subscribed

I don't know how to make the window resize automatically to the required size.

I don't believe it would be good to resize the window automatically even if it were possible; I have to think it would mess with users who start gvim maximized, or who use tiling window managers, etc.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/15517/2323433213@github.com>

Drew Vogel

unread,
Dec 11, 2024, 5:05:59 PM12/11/24
to vim/vim, Subscribed

@jmdevin A few diagnostic questions:

  • What is your guioptions value?
  • Does this occur if you start with --clean?
  • Can you provide the output of gvim --version?

The gvim implementation actually does resize the window to match what is required by Rows and Columns unless guioptions=k is set.

For what it's worth, this is what I see with 9.1.0810 under GNOME 42 compiled against GTK3:

env GVIM_ENABLE_WAYLAND=1 ~/opt/vim/bin/vim -g --clean -background slateblue -c 'set guioptions='

Screenshot.from.2024-12-11.15-52-22.png (view on web)


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/15517/2537293798@github.com>

Andri Möll

unread,
Oct 1, 2025, 2:42:45 PM10/1/25
to vim/vim, Subscribed
moll left a comment (vim/vim#15517)

Hey! I'm seeing the same thing on v9.1.1734 on Arch Linux and Wayland. I briefly alluded to a width issue in #13575 (comment), but the following invocation results in a window that's got a wider gap on the right side than on the left (as made visible via colorcolumn):

gvim --clean -c 'set guioptions= columns=81 colorcolumn=80 lines=25'
image.png (view on web)

The gap persists if there's a right scrollbar. The aforementioned GVIM_ENABLE_WAYLAND doesn't seem to have any effect.

I'm also seeing Vim vertical size jump back to 40 lines when tabbing away from the newly opened window, but right now I suspect that's to do with GNOME's Wayland window manager not permitting window to change their size. Or perhaps that's also a Vim bug...


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/15517/3357661968@github.com>

Y0J1G3N

unread,
Oct 13, 2025, 10:44:50 PM10/13/25
to vim/vim, Subscribed
Y0J1G3N left a comment (vim/vim#15517)

I’m experiencing a similar issue under Wayland. Certain font and font size configurations cause the bottom area to become unusually thick.

For example, in my screenshot, this happens when using the Sarasa Fixed font at size 11. When I set the font size to 10 or 12, the problem disappears.

This issue does not occur when running under X11.

Wayland:
image.png (view on web)

x11:
image.png (view on web)


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/15517/3399907203@github.com>

phouchg42

unread,
May 14, 2026, 6:38:34 PM (18 hours ago) May 14
to vim/vim, Subscribed
phouchg42 left a comment (vim/vim#15517)

Seems it’s not a GVim but something else (wayland, gtk4, gnome?) problem.


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/issues/15517/4455284063@github.com>

phouchg42

unread,
May 14, 2026, 6:38:37 PM (18 hours ago) May 14
to vim/vim, Subscribed

Closed #15517 as completed.


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/issue/15517/issue_event/25551291205@github.com>

Reply all
Reply to author
Forward
0 new messages