Tray icon X11 window size does not follow tray icon actor size
The size of the X11 tray plug window (and therefore also socket window) is left entirely up to the client and does not reflect the size with which it is actually shown in the shell. Some clients, like Anydesk, create a 200x200 window, which extends way beyond what is usually shown as tray icons in the panel (with the common tray icon extensions). The socket window is created as a override redirect window and thus gets stacked above other windows, but is made invisible in shell_tray_icon_window_created_cb()
and is set to ignore clicks on Wayland. On X11 however the clicks will still be received by the window, leading to the whole invisible 200x200 area blocking clicks from the windows below and performing whatever action that tray icon does, even if the user visually did not click on that tray icon.
To fix this the size of the NaXembed
window should follow the allocation of the ShellTrayIcon
actor. I have some local branch that implements this, but it needs to be cleaned up a bit and I'm not sure when I will get to that.
CC: @3v1n0, since this is probably the source of a couple of issues reported against the AppIndicator extension