[Bug]: No shadows on Linux KDE (Wayland)
Checks before filing an issue
- [x] This issue doesn't reproduce on web browsers (such as in Chrome). If it does, issue reports go to the Mattermost Server repository.
- [x] I have checked the issue tracker and have not found an issue that matches the one I'm filing. This should include closed issues.
- [x] This issue is not a troubleshooting question. Troubleshooting questions go here: https://forum.mattermost.com/c/trouble-shoot/16.
- [x] This issue is not a feature request. You can request features and make product suggestions here: https://mattermost.com/suggestions/.
- [x] This issue reproduces on the most recent stable version, or the most recent prerelease version of the Mattermost Desktop App.
- [x] I have read the contribution guidelines.
Mattermost Desktop Version
5.11.2
Operating System
Arch Linux x64
Mattermost Server Version
No response
Steps to reproduce
- Boot into KDE 6
- Start the app
Expected behavior
- The main window should have shadows
Observed behavior
- The shadows are gone
Log Output
-
Additional Information
Not technically a bug, more of a regression from 5.8.x. This seems to be related to https://github.com/mattermost/desktop/pull/3104, i.e. the electron version bump. While not a bug per se, it's kinda annoying because the window blends in and it's harder to distinguish there are more than a couple of open apps on a desktop. Dunno much about Electron, but if it's possible to restore the old behavior (asking a compositor to draw SSD instead of manually drawing CSD), it would be probably the best way to go.
I don't think there's anything we can do about this other than upgrade Electron, have you checked the Electron GitHub to see if this is reported? Also a screenshot would help.
have you checked the Electron GitHub to see if this is reported
Nah, I'll try, but I think that's an API change, not a bug. I suspect that electron now requests CSD instead of SSD by default. I'll check what Wayland debug logs say.
Also a screenshot would help.
Sure.
Mattermost 5.8:
Mattermost 5.11:
This is KDE 6.3 (Wayland).
I was able to see this myself on KDE, just to double check do you have the ELECTRON_OZONE_PLATFORM_HINT=wayland environment variable enabled?
No, I don't, newer Electron choose wayland by default AFAIR.
Checked with ELECTRON_OZONE_PLATFORM_HINT=wayland, same.
Created a JIRA ticket to track: https://mattermost.atlassian.net/browse/MM-63584
I am also concerned about this issue. It is also relevant for Mattermost version 5.13.1
Bump? Still happens on 6.0 with electron38.