System.Windows.Forms.NotifyIcon does not show up in the systray (Tested on OS: Fedora, Arch. DE: MATE, Cinnamon)
When I try to fix the problem, I found the following line of code cause the bug:
File: XplatUIX11.cs, method: SystrayAdd, line: 6024
XChangeProperty(DisplayHandle, hwnd.whole_window, _XEMBED_INFO, _XEMBED_INFO, 32, PropertyMode.Replace, atoms, 2);
When I commented out (removed) the line aboved. The icon show up correctly in the systray. Right-click also works as expected. Only minor problem is that the mouse cursor change slightly (I think it change to XServer cursor???)
Because I am a newbie to Linux, hence, I have no knowledge about XServer. I am not sure what that line of code for. I stopped my effort here and report this as a bug in the hope that the experts can fix this faster than me. Personally, I will run my application without that line of code.
(It seems simple, but cost me a lot of time. Trying countless time to compile Mono, MonoDevelop on Fedora to get the latest version of Mono, but always fail. Eventually, I installed Arch Linux to get the newest Mono 3.2.x, and found out the problem still there :D)
Sorry for my English.
Setting priority to lowest, since Windows.Forms is no longer being developed actively.
Created attachment 11467 [details]
Remove the line from sources
I have the same behaviour as in this bug (on Calculate Linux/LXDE). Removing that line helps from the first sight. I tested on the sample https://github.com/mono/winforms/blob/master/notifyicon/swf-notifyicon.cs