desktop icon indicating copy to clipboard operation
desktop copied to clipboard

[Bug]: No shadows on Linux KDE (Wayland)

Open heroin-moose opened this issue 10 months ago • 8 comments

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

  1. Boot into KDE 6
  2. Start the app

Expected behavior

  1. The main window should have shadows

Observed behavior

  1. 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.

heroin-moose avatar Mar 13 '25 20:03 heroin-moose

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.

devinbinnie avatar Mar 26 '25 13:03 devinbinnie

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:

Image

Mattermost 5.11:

Image

This is KDE 6.3 (Wayland).

heroin-moose avatar Mar 26 '25 15:03 heroin-moose

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?

devinbinnie avatar Mar 27 '25 12:03 devinbinnie

No, I don't, newer Electron choose wayland by default AFAIR.

heroin-moose avatar Mar 27 '25 13:03 heroin-moose

Checked with ELECTRON_OZONE_PLATFORM_HINT=wayland, same.

heroin-moose avatar Mar 27 '25 13:03 heroin-moose

Created a JIRA ticket to track: https://mattermost.atlassian.net/browse/MM-63584

devinbinnie avatar Mar 27 '25 16:03 devinbinnie

I am also concerned about this issue. It is also relevant for Mattermost version 5.13.1

onesb23 avatar Sep 26 '25 11:09 onesb23

Bump? Still happens on 6.0 with electron38.

heroin-moose avatar Nov 17 '25 07:11 heroin-moose