Bug 418370

Summary: Inivisible Anydesk tray icon sits at the top left corner.
Product: [Plasma] plasmashell Reporter: Yevhen Popok <xalt7x.service>
Component: XembedSNIProxyAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: j.filzmaier, kde, materka, nate
Priority: NOR    
Version: 5.18.1   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Anydesk invisible tray icon at the top left corner

Description Yevhen Popok 2020-03-01 20:26:48 UTC
Created attachment 126531 [details]
Anydesk invisible tray icon at the top left corner

SUMMARY
Inivisible Anydesk tray icon sits at the top left corner.

STEPS TO REPRODUCE
1. Install Anydesk
2. Restart
3. Try to click on top left corner
4. Log out / log in, eventually you'll get it

OBSERVED RESULT
Left click opens Anydesk window. Right click open Anydesk menu. Restarting plasmashell fixes it

EXPECTED RESULT
Anydesk tray item must be only in system tray

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Kubuntu 20.04
(available in About System)
KDE Plasma Version: 5.18.2
KDE Frameworks Version: 5.67.0
Qt Version: 5.12.5

ADDITIONAL INFORMATION
Issue isn't always reproducible, panel/tray location doesn't really matter. When Anydesk is installed, at loading (between SDDM and Plasma Shell) you can always notice black box at that corner.
Comment 1 Konrad Materka 2020-05-28 19:46:33 UTC
Oh no, not this one again! :( I hoped I fixed it in Bug 357443...

This is really, really hard to fix reliably. Without technical details, this invisible icon should be stacked behind all other windows, including wallpaper. For some reasons, not controllable from XEmbedSNIProxy, sometimes it is stacked on the top.

The workaround is to click on the icon is system tray - icon in top left corner is no longer there.
Comment 2 Yevhen Popok 2020-06-08 22:30:46 UTC
My current workaround is to restart GUI after login with script

nano ~/.config/autostart-scripts/restart_anydesk.sh

#!/bin/bash
if pgrep -f "anydesk --tray" > /dev/null; then
pkill -x anydesk
/usr/bin/anydesk --tray &
fi
Comment 3 Yevhen Popok 2021-06-21 11:21:44 UTC
Same thing happens with Cryptomator. Easily reproducible in a Wayland session.  For some reason that misplaced invisible tray item is always at the top left corner.
Comment 4 Nate Graham 2021-12-03 16:09:22 UTC

*** This bug has been marked as a duplicate of bug 433079 ***