I have tested it again on a clean system with three programs:
* Test app which creates two different tray icons with menus and submenus;
* The systray example from qtbase5-examples;
* Owncloud-client 2.1.1+dfsg-1ubuntu1 which does not have the workaround.
It works fine so I took the liberty to upload it to yakkety. If nobody complains, I will upload it to Xenial too in a couple of weeks.
I have tested it again on a clean system with three programs:
* Test app which creates two different tray icons with menus and submenus;
* The systray example from qtbase5-examples;
* Owncloud-client 2.1.1+dfsg-1ubuntu1 which does not have the workaround.
It works fine so I took the liberty to upload it to yakkety. If nobody complains, I will upload it to Xenial too in a couple of weeks.