Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
6 tasks done
heroin-moose opened this issue Mar 13, 2025 · 6 comments
Open
6 tasks done

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

heroin-moose opened this issue Mar 13, 2025 · 6 comments

Comments

@heroin-moose
Copy link

Checks before filing an issue

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

@devinbinnie
Copy link
Member

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.

@heroin-moose
Copy link
Author

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

@devinbinnie
Copy link
Member

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?

@heroin-moose
Copy link
Author

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

@heroin-moose
Copy link
Author

Checked with ELECTRON_OZONE_PLATFORM_HINT=wayland, same.

@devinbinnie
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants