cosmic-applets
cosmic-applets copied to clipboard
Status area applet popup can be dragged from but not dragged into
https://github.com/pop-os/cosmic-applets/assets/56272643/c6794362-67ac-496c-8624-3b68f44d0928
It would need to be enabled in the desktop file to be enabled, but it's also a bit awkward, because the status area applet is a list, while the feature in the panel is mostly intended for use with a simple button that toggles the popup. I've not yet decided how to best handle it for the list.
I've not yet decided how to best handle it for the list.
My 2 cents (not that you need my opinion) is if it's not programmatically a nightmare, treating them like the other symbolic applet buttons feels more ergonomic.
Ok, I think that the panel implementation should work for generating an event for the status area when the pointer enters, if it is enabled in the desktop file now. But the applet also probably needs to implement hover switching between it's own buttons when there is an existing popup.
Input Sources also has this behavior. Should it behave like the other applets that have it enabled?
Yup, that applet just needs it enabled.
I've not yet decided how to best handle it for the list.
Possibly too much of a rework, but couldn't the status-applet perhaps spawn multiple xdg-toplevels (one per icon) instead of using one for multiple icons? That might make handling this easier?
Possibly too much of a rework, but couldn't the status-applet perhaps spawn multiple xdg-toplevels (one per icon) instead of using one for multiple icons? That might make handling this easier?
Ya, definitely, that could work. I think there might be a question of how all of the status area windows are ordered on the panel. The panel could probably sort by title, but that would have to be documented. For now, I'll probably implement hover switching inside a single status-area applet window and see how that works.
This should be implemented now.