You are not logged in.

#1 2025-10-05 01:22:45

FabioAreia
Member
Registered: 2010-08-18
Posts: 4

GTK apps on KDE wayland lost minimize and maximize buttons

3UJ176W.png

Anyone know i restore those buttons?

Offline

#2 2025-10-05 08:15:45

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 68,787

Re: GTK apps on KDE wayland lost minimize and maximize buttons

Did you https://wiki.archlinux.org/title/GTK#Hide_CSD_buttons ?
Did you disable SSD in the kwin settings?

Offline

#3 2025-10-08 04:54:23

bb10
Member
Registered: 2007-12-31
Posts: 75

Re: GTK apps on KDE wayland lost minimize and maximize buttons

Same issue here. It started since updating to GTK 4.20.x.
Not only are the minimize and maximize buttons missing in GTK4 apps, but setting a font in ~/.config/gtk-4.0/settings.ini with gtk-font-name is now also ignored.
Fonts before (right) and after (left) 4.20: Screenshot of mission-center showing font issue.
And in Pinta some icons in the titlebar are also broken: Screenshot of Pinta showing issues with titlebar.

seth wrote:

Did you https://wiki.archlinux.org/title/GTK#Hide_CSD_buttons ?
Did you disable SSD in the kwin settings?

I did neither. I think it might be ignoring

gtk-decoration-layout=icon:minimize,maximize,close

in settings.ini since GTK4-4.20 for some reason.

It's still reading the settings.ini file, because when starting a GTK4 app, journal shows:

Unknown key gtk-modules in /home/bb10/.config/gtk-4.0/settings.ini

when

gtk-modules=window-decorations-gtk-module:colorreload-gtk-module

is not commented out in settings.ini. I don't think it has to do with this issue.

And further:

/usr/lib/xdg-desktop-portal	A backend call failed: No such method 'CreateMonitor' in interface 'org.freedesktop.impl.portal.Inhibit' at object path '/org/freedesktop/portal/desktop' (signature 'ooss')
/usr/lib/xdg-desktop-portal	Failed to close session implementation: GDBus.Error:org.freedesktop.DBus.Error.UnknownObject: No such object path '/org/freedesktop/portal/desktop/session/1_2624/gtk2017936843'
xdg-desktop-portal-kde	xdp-kde-settings: Namespace  "org.gnome.desktop.a11y.interface"  is not supported

Full settings.ini:

[Settings]
#gtk-application-prefer-dark-theme=true
gtk-cursor-blink=true
gtk-cursor-blink-time=1000
gtk-cursor-theme-name=breeze_cursors
gtk-cursor-theme-size=24
gtk-decoration-layout=icon:minimize,maximize,close
gtk-double-click-time=200
gtk-enable-animations=true
gtk-enable-primary-paste=false
gtk-font-name=Noto Sans CJK JP Medium, Medium 10
gtk-icon-theme-name=breeze-dark
#gtk-modules=window-decorations-gtk-module:colorreload-gtk-module
gtk-primary-button-warps-slider=true
gtk-sound-theme-name=ocean
gtk-xft-dpi=196608

Offline

#4 2025-10-08 10:37:43

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,775

Re: GTK apps on KDE wayland lost minimize and maximize buttons

GTK4 grabs these from the xdg-desktop-portal implementation and xdg-desktop-portal-gtk was added as an opt depends for this reason, is that installed?

Offline

#5 2025-10-08 16:14:34

bb10
Member
Registered: 2007-12-31
Posts: 75

Re: GTK apps on KDE wayland lost minimize and maximize buttons

V1del wrote:

GTK4 grabs these from the xdg-desktop-portal implementation and xdg-desktop-portal-gtk was added as an opt depends for this reason, is that installed?

Yes, I've been keeping an eye on the gitlab issues on both gtk4 and kde-gtk-config. Unfortunately it didn't fix these issues.

Offline

Board footer

Powered by FluxBB