SchildiChat / schildichat-desktop

Matrix client / Element Web/Desktop fork
https://schildi.chat
Apache License 2.0
379 stars 44 forks source link

Tray icon disapears after waking up the device from sleep in linux #118

Open jacktheripper19 opened 2 years ago

jacktheripper19 commented 2 years ago

Hello, thank you for your hard work on this amazing matrix client. just wanted to point out a small bug that happens after waking up the device from sleep state on linux, the tray icon become invisible. This happened to me on both KDE plasma and Gnome 40. Also the same issue on deb package for ubuntu and AUR on arch. The place for the tray icon is still there but it's invisible. This can be fixed by either restarting the app or changing the state of the icon by receiving a message or going offline for example.

su-ex commented 2 years ago

Does the same happen with Element? And does the same happen with other (electron) applications by any chance? Xorg or Wayland?

For me with Gnome and Xorg on Arch, tray icons are often messed up or missing after screen off, standby or similar. Alt+F2 and then "r" to restart brings them back, so I'm not sure if it's the applications' fault at all.

SpiritCroc commented 2 years ago

I think we talked about this before:

jacktheripper19 commented 2 years ago

I just installed Element and can confirm that it has the same issue. I don't have any other electron application with tray icon. Wayland is not configured in my machine so can't test with it. It happened to me on KDE as well so I think it's more of an Electron issue in this case. I have no problem with it since I can do a workaround but it should be fixed from a user experience perspective. Also, restarting KDE Plasma with kquitapp5 plasmashell && kstart5 plasmashell doesn't seem to fix the issue for me.

soloturn commented 2 years ago

the gnome design guidelines: https://wiki.gnome.org/Initiatives/StatusIconMigration/Guidelines

soloturn commented 2 years ago

here a fix in electron-17: https://github.com/electron/electron/pull/32650

supporting client side wayland window decorations.

here related bug with notifications:

su-ex commented 2 years ago

What have window decorations to do with the tray icon? 🤔