cosmic-applets icon indicating copy to clipboard operation
cosmic-applets copied to clipboard

Status area applet popup can be dragged from but not dragged into

Open ryanabx opened this issue 9 months ago • 5 comments

https://github.com/pop-os/cosmic-applets/assets/56272643/c6794362-67ac-496c-8624-3b68f44d0928

ryanabx avatar May 07 '24 16:05 ryanabx

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.

wash2 avatar May 07 '24 16:05 wash2

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.

ryanabx avatar May 07 '24 16:05 ryanabx

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.

wash2 avatar May 07 '24 17:05 wash2

Input Sources also has this behavior. Should it behave like the other applets that have it enabled?

git-f0x avatar May 07 '24 17:05 git-f0x

Yup, that applet just needs it enabled.

wash2 avatar May 07 '24 18:05 wash2

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?

Drakulix avatar May 08 '24 11:05 Drakulix

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.

wash2 avatar May 08 '24 12:05 wash2

This should be implemented now.

wash2 avatar May 09 '24 17:05 wash2