I recently switched from xorg to wayland (finally!). But some applications behave differently. For example “KeypassXC” installed from Flathub or “Fedora Registry” - it doesn’t matter.
As you can see, they have different colored title bars. But not only that, they also behave differently. I have configured a middle click on the title bar to minimize the window. This doesn’t work in Wayland.
i think this has something to do with the KDE Runtime used by KeepassXC.
Try with gnome-tweaks to set in the Appearance option “Legacy Applications” to the same value as the Icons and cursor to have an unified theming, also for KDE apps.
Was curious how my Icon stuff was set and installed gnome-tweaks; it shows my mouse acceleration enabled when it’s off in real GNOME settings and gsettings
Might be F41 with the red vs black X difference, but here’s mine:
This is happening because Gnome does not support something called “server side decorations” under Wayland; with SSD, the compositor draws the decorations around windows.
So when you open KeePassXC under Wayland, it is instead using Client Side Decoration; with CSD, the app itself is drawing the decorations around the window.
Unfortunately, Qt’s CSD implementation doesn’t look great on Gnome, which is a shame given its prevalence. In my experience, smaller and younger toolkits like Flutter look better.
By setting QT_QPA_PLATFORM=xcb, you are telling Qt to use X11. So the app instead launches through Xwayland, which Gnome does support SSD for.