pop-os / cosmic-panel

WIP
GNU General Public License v3.0
113 stars 26 forks source link

Cosmic clipboard API not working for popups and layer surfaces #232

Closed leb-kuchen closed 2 months ago

leb-kuchen commented 2 months ago

Applets can't interact with the system clipboard when focused. The App Library and Launcher use layer surfaces and are both able to use the clipboard, so I think applets should too.

Most notably, text inputs and the text editor are affected, but many applets will require clipboard functionality. For me, the inability to copy emojis is a deal breaker, as typing emojis is cumbersome and defeats the purpose of an emoji selector. Therefore, I am thinking about rewriting the applet into an application and a service that uses layer surfaces.

Of course, there is the data control settings, but this is obviously is not a solution. Another workaround I've found, is to spawn an application that copies the text, however this creates a popup. Then I could as well turn the applet into a panel button applet.

wash2 commented 2 months ago

This is a bug. I'll work on a fix for the clipboard.