Start GVim with env GVIM_ENABLE_WAYLAND=1.
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).
9.1.0672
OS: Arch
DE: Gnome 46
No response
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
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.![]()
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.![]()
@jmdevin A few diagnostic questions:
guioptions value?--clean?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.![]()
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.![]()
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)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
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.![]()
—
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.![]()