mate-desktop / mate-panel

MATE panel
https://mate-desktop.org
GNU General Public License v2.0
185 stars 118 forks source link

Cannot add multiple "Notification Area"s #1399

Open davidhedlund opened 1 year ago

davidhedlund commented 1 year ago

Expected behaviour

Make it possible to add more "Notifcation Area"s because it's possible to add multiple entries of the rest of the items in "Add to Panel".

Actual behaviour

More than one "Notification Area" cannot be added, but still the "Add" button indicates that it could be added.

Steps to reproduce the behaviour

image Tried to add more than one "Notification Area"

MATE general version

1.26.0

Package version

1.26.0

Linux Distribution

Ubuntu MATE 23.04

Link to bugreport of your Distribution (requirement)

https://bugs.launchpad.net/ubuntu/+bug/2030266

rilian-la-te commented 1 year ago

It cannot be possible, if we using XEMBED at least.

davidhedlund commented 1 year ago

It cannot be possible, if we using XEMBED at least.

Then the "Add" button should be disabled for the "Notification Area" if it has already been added, right?

image

lukefromdc commented 1 year ago

With in-process builds of the notification area applet, you can indeed load multiple instances of it, though only SNI icons (which do not use Xembed) will appear on it. That is essentially the same behavior as on wayland, in which case any number of instances of the applet should indeed work, but traditional tray icons (which use Xembed) are excluded.

davidhedlund commented 1 year ago

Thank you for your technical feedback.

traditional tray icons (which use Xembed) are excluded.

Can they be included?

lukefromdc commented 1 year ago

I do not know enough about xembed to answer that one.

rilian-la-te commented 1 year ago

No, XEMBED can be active only for one instance per X screen. For SNI, as @lukefromdc said, it is possible to show multiple tray instances. I tested SNI with both sntray applet and traditional MATE SNI, and both works together on one panel.