Description of problem: Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
Created attachment 1680020 [details] Screenshot of keepassxc without window borders
See also: https://github.com/keepassxreboot/keepassxc/issues/2973
Starting KeepassXC as follows fixes the issue of no window borders: $ keepassxc -platform xcb See also: https://github.com/keepassxreboot/keepassxc/issues/2006
Looks like we need to add the upstream patch to avoid wayland weirdness. I can do this. Germano, any objections?
(In reply to Mukundan Ragavan from comment #4) > Looks like we need to add the upstream patch to avoid wayland weirdness. Can you show me the URL that describes the patch?
https://github.com/keepassxreboot/keepassxc/commit/f446774605c6a6bd9fe410179975eace6630b406
(In reply to Mukundan Ragavan from comment #6) > https://github.com/keepassxreboot/keepassxc/commit/ > f446774605c6a6bd9fe410179975eace6630b406 This version of the URL is better https://github.com/keepassxreboot/keepassxc/pull/2635 and in comments you can see that the code has been removed on September 2019 -> https://github.com/keepassxreboot/keepassxc/pull/3520 Jan please fill a new upstream bugreport, since I don't know if they pay attention to new comments on closed bugreports
I created a new bug upstream. Thanks for your recommendation, Germano. https://github.com/keepassxreboot/keepassxc/issues/4652
My ticket upstream was closed: "That's a problem with your window manager / compositor."
Created attachment 1691342 [details] Screenshot of keepassxc with none GNOME window decorators Screenshot added with none GNOME window decorators
Created attachment 1691343 [details] Screenshot of keepassxc with GNOME window decorators Added screenshot of KeePassXC with GNOME window decorators
See also: https://forums.fedoraforum.org/showthread.php?323680-KeepassXC-no-window-borders-on-Fedora-GNOME-Wayland&p=1833484#post1833484 This issue is not related to KeePassXC, it happens also for the Nextcloud client. Both these applications are non-GNOME applications. The attached screenshots are taken from two different systems. Can it be a configuration issue, or missing packages?
Can you try also with a Xorg GNOME session?
I'm pretty sure now that it is a Qt theme issue. When I start KeePassXC as follows on Wayland, the windows look GNOME-like: keepassx -style adwaita The questions is now whether I encounter a bug, or a misconfiguration at my side.
(In reply to Jan Vlug from comment #14) > I'm pretty sure now that it is a Qt theme issue. > When I start KeePassXC as follows on Wayland, the windows look GNOME-like: > keepassx -style adwaita > > The questions is now whether I encounter a bug, or a misconfiguration at my > side. To check if it is a problem of your user configuration, try with a new system user. ****Please try also with a Xorg GNOME session.**** Since there are some Qt components that are enabled on Wayland only
(In reply to Germano Massullo from comment #13) > Can you try also with a Xorg GNOME session? With the same user on Xorg GNOME, the window decorations look correctly as GNOME. So it seems a Wayland issue only.
> To check if it is a problem of your user configuration, try with a new > system user. I checked with another user. There the window theme was correct on Wayland. Thanks for the suggestion. So, I think this is a configuration issue on my system. I still do not know how this could happen, due to a bug or due to a misconfiguration by me. Feel free to close this bug if you think it is a misconfiguration by me. I will try to modify the default Qt theme to fix the issue, and I will update this bug if I find a solution. Thanks for you work on Fedora applications that I use daily!
(In reply to Jan Vlug from comment #17) > Thanks for you work on Fedora applications that I use daily! You are welcome! I close this bugreport since the problem is not related to KeepassXC
I installed Plasma with # dnf install plasma-desktop I logged in with the Plasma desktop. I fiddled a bit with the themes. Mostly set everything if possible to Adwaita or Fedora 32. Log out, logged in in GNOME Wayland again, and the issue disappeared. Next thing that I will try is to remove the plasma-destop (and dependent packages again) to see if everything keeps working.
Issue still exists in Fedora 32. Just tested by running Live CD and installing KeepassXC from Software. After starting KeepassXC window does not have correct decorations: no shadow, window title is too bold (as compared to other windows) and there's no hover style on close button. I can also confirm having same issue on a desktop PC running fresh install of Fedora 32 and laptop with Fedora 32 (it was incrementally updated from Fedora 29). Probably installing plasma-desktop installs some configuration files that fixes this issue. If so, then they should be installed by default either when installing KeepassXC or even when installing OS.
(In reply to joshas from comment #20) > Probably installing plasma-desktop installs some configuration files that > fixes this issue. If so, then they should be installed by default either > when installing KeepassXC or even when installing OS. Excuse me but installing a whole desktop environment is not a good idea. Can you provide all details about your system? Do not test with a livecd, instead try creating a new system user, login in that session a open keepassxc
Actually, my comment 19 is incorrect. I still have the issue on one of my systems. Strange enough in the other system the window decoration seems correct. I will attach some screenshots.
Created attachment 1699945 [details] Screenshot of NextCloud client with GNOME window decorators
For info, once I saved this from an IRC chat: 10∶38 Guest67650 Hello all I have no window borders on KDE applications on my Fedora GNOME desktop. Or maybe there are borders, but then they are barely visible because of using the same color as the window. I see this in e.g. KeePassXC. On another desktop, I do not have this 'issue'. Probably this is related to a theme. Do you know how I can change the window borders (and themes in general) for KDE applications on a GNOME desktop? 12∶45 Kevin_Kofler Guest67650: export QT_QPA_PLATFORM=xcb (or run your apps with: QT_QPA_PLATFORM=xcb yourapp) GNOME requires Wayland windows to draw their own window decorations, which does not seem to work for you (even though there was some work in Qt on that). So make it an X11 window instead (by forcing the QPA platform to xcb) and it will just work. And blame GNOME's Hell for the mess. They stubbornly refuse to support compositor-side window decorations on Wayland. Guest67650 @kevin_kofler: Thanks, I see that this solves the 'issue'. Kevin_Kofler You can put the export in your user (or even system) profile scripts so that it applies to everything. Guest67650 That is a good suggestion. Kevin_Kofler Qt upstream judges Wayland support on GNOME's Hell not ready for production yet, but Fedora downstream unilaterally decided otherwise. https://fedoraproject.org/wiki/Changes/Qt_Wayland_By_Default_On_Gnome
Starting KeePassXC this way results in correct Window decorations: QT_QPA_PLATFORM=xcb keepassxc
Modifying the org.keepassxc.KeePassXC.desktop file as described here fixes this issue also when launching it via the GNOME shell graphical user interface: https://github.com/keepassxreboot/keepassxc/issues/4105#issuecomment-618643306