[vim/vim] GTK4 not working properly under XFCE on Fedora 44 (Issue #20307)

10 views
Skip to first unread message

Steven A. Falco

unread,
May 23, 2026, 5:13:07 PM (2 days ago) May 23
to vim/vim, Subscribed
stevefalco created an issue (vim/vim#20307)

Steps to reproduce

I updated this morning to vim-9.2.506-2 (which uses gtk4) on Fedora 44 under XFCE (X11). I noticed that my .vimrc file wasn't having the normal effect - my window was the wrong size and had the wrong font. When I tried to resize the window the text disappeared and I had to use ^L to refresh the screen.

I reverted to an earlier release (vim-9.2.506-1) which uses gtk3 and everything was back to normal.

I then tried building local copies based on the https://github.com/vim/vim.git code. When I configured using:

./configure --with-x --enable-gui=gtk3

the build worked fine. But when I tried using:

./configure --with-x --enable-gui=gtk4

then the build had the same problem as what I saw with the official Fedora build. I created a Fedora bug:

https://bugzilla.redhat.com/show_bug.cgi

Expected behaviour

The gtk4 version should work as well as the gtk3 version.

Version of Vim

vim-9.2.506-2

Environment

Fedora 44 XFCE X11

Logs and stack traces


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/20307@github.com>

Christian Brabandt

unread,
May 23, 2026, 5:28:53 PM (2 days ago) May 23
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#20307)

What exactly is in your vimrc that does not work?


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/20307/4526569315@github.com>

Steven A. Falco

unread,
May 23, 2026, 5:49:31 PM (2 days ago) May 23
to vim/vim, Subscribed
stevefalco left a comment (vim/vim#20307)

The "set guifont" line is not working, and neither is the "autocmd GUIEnter * set lines=40 columns=80" line. I attached the complete file for reference. This has been working perfectly for a long time with the gtk3 gui. It is just the Fedora changeover of vim to use gtk4 that is causing problems. I don't know if there is something wrong in their gtk4 library or in vim itself. Right now, I just know that the combination isn't working.

vimrc.zip


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/20307/4526611497@github.com>

Christian Brabandt

unread,
May 24, 2026, 4:43:42 AM (21 hours ago) May 24
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#20307)

This seems to have been fixed as of #20269


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/20307/4527870955@github.com>

Christian Brabandt

unread,
May 24, 2026, 4:43:45 AM (21 hours ago) May 24
to vim/vim, Subscribed

Closed #20307 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/20307/issue_event/25895944496@github.com>

Steven A. Falco

unread,
May 24, 2026, 10:33:21 AM (15 hours ago) May 24
to vim/vim, Subscribed
stevefalco left a comment (vim/vim#20307)

This does not fix the issue for me. I've attached two screenshots from version v9.2.0526, which includes the gtk4 "cannot resize" patch. The smaller window is what I get when building for gtk4 while the larger window is what I get when building for gtk3.

Screenshot_20260524_102719.png (view on web) Screenshot_20260524_102818.png (view on web)


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/20307/4529020773@github.com>

Steven A. Falco

unread,
May 24, 2026, 10:35:28 AM (15 hours ago) May 24
to vim/vim, Subscribed
stevefalco left a comment (vim/vim#20307)

For some reason, I cannot reopen this issue. @chrisbra - please reopen it for me, or please give me whatever level of access is needed for me to reopen my own issues.


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/20307/4529025551@github.com>

mattn

unread,
May 24, 2026, 10:43:31 AM (15 hours ago) May 24
to vim/vim, Subscribed

Reopened #20307.


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/20307/issue_event/25900347121@github.com>

mattn

unread,
May 24, 2026, 11:00:07 AM (15 hours ago) May 24
to vim/vim, Subscribed
mattn left a comment (vim/vim#20307)

Hi @stevefalco, opened #20317 which should fix this. Could you rebuild from that branch and confirm?


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/20307/4529082656@github.com>

Christian Brabandt

unread,
May 24, 2026, 11:09:09 AM (15 hours ago) May 24
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#20307)

I cannot reproduce the issue. For me with a vimrc like this:

set cpo
au GuiEnter * set lines=40 columns=20

and vim -g -u /tmp/vimrc opens a gui with the expected size. Can you reproduce with a minimum vimrc 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.Message ID: <vim/vim/issues/20307/4529103373@github.com>

Steven A. Falco

unread,
May 24, 2026, 11:46:01 AM (14 hours ago) May 24
to vim/vim, Subscribed
stevefalco left a comment (vim/vim#20307)

I tried building from mattn branch fix-gtk4-shellsize-redraw. That doesn't fix it.

I tried moving my ~/.vim directory out of the way, and replaced my .vimrc file with the two lines given by chrisbra. I launched via: /usr/local/bin/gvim -u $HOME/.vimrc foo to be sure I was getting the new .vimrc file.

The cpoptions shown are cpoptions=aAbBcCdDeEfFgHiIjJkKlLmMnoOpPqrRsStuvwWxXyZz$!%*-+<>;

I get a blank window that appears different than 40x20. However, :set lines reports 20 and :set columns reports 88, and as soon as I type the first : the window contents fill in. Here is the initial window before I type anything:

Screenshot_20260524_114315.png (view on web)

Once I type the :set columns I see:

Screenshot_20260524_114405.png (view on web)

And for completeness, here is the .vimrc file:

$ cat .vimrc
set cpo
au GuiEnter * set lines=40 columns=20


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/20307/4529203549@github.com>

Steven A. Falco

unread,
May 24, 2026, 12:02:51 PM (14 hours ago) May 24
to vim/vim, Subscribed
stevefalco left a comment (vim/vim#20307)

I just noticed something else bizarre. I went back to my previous .vimrc and stretched the window rather tall. I then selected Help->Version and tried to highlight the version text using the left mouse button. I got a very strange display:

Screenshot_20260524_115806.png (view on web)

That only seems to happen when highlighting the version output. If the window shows the file I am editing then the highlighting works properly:

Screenshot_20260524_120128.png (view on web)


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/20307/4529256629@github.com>

Steven A. Falco

unread,
May 24, 2026, 2:53:33 PM (11 hours ago) May 24
to vim/vim, Subscribed
stevefalco left a comment (vim/vim#20307)

Another visual problem is that I have no scrollbar when using gtk4. Normally, there would be a scrollbar on the right side of the window. Space appears to be allocated as can be seen in this screenshot, but there is no "thumb" or background for the scrollbar:

Screenshot_20260524_145054.png (view on web)


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/20307/4529664775@github.com>

Reply all
Reply to author
Forward
0 new messages