Can't set clipboard content on wayland if I hide the window immediately after

Hi there!

I have some python code that works more or less like this:

def copy_and_hide(self, text: str)
            contx = Gdk.ContentProvider.new_for_value(text)

The problem I’m facing is that sometimes the text is not copied to the clipboard.
Do you have any suggestions?

Thank you

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.