Make notifications applet multi-instance#13248
Make notifications applet multi-instance#13248fredcw wants to merge 2 commits intolinuxmint:masterfrom
Conversation
|
I'm for making this applet multi-instance, but maybe it's time we start having the applet use copies of notifications instead of handing them off (This is my lazy fault for doing it originally).
The Notification class already keeps the There might be some technical reason this won't work as easily as I think, but I'd feel better in the long run about having multiple instances that we didn't have to worry about juggling actors around. |
|
@mtwebster That does sound more logical. I'll look into it. |
|
@mtwebster The problem is that a notification's Source can't be destroyed while there are still notifications or notification clones for that Source because the DBus session needs to be kept open so that any remaining notifications can still be interactive or replaceable. So the Source or the notification itself would have to keep count of the cloned notifications so that the Source would not consider the notification dismissed until the notification's clone count is zero. I think the current method works OK, as long as we assume that a notification will never need to be shown in two different places at the same time. However, this would not be the case if someone were to create a notifications desklet for instance. Another method would be to separate the notification's logic from the notification's UI (actors, buttons), and just clone the UI bit. |
No description provided.