How can I continue to receive data offers when my application is in the background?

I’m attempting to create a clipboard with the wayland data control protocol.

I find that when listening data offers, they’re unavailable briefly after the listening app is minimised.

I can hack it by maximising on an interval. However this has drawbacks:

  • Apps loose focus on an interval.
  • Each time app loose focus the screen flashes
  • Keystrokes can be dropped in the app one is working in

Is there a way to keep receiving data offers and changes when the app is minimised without these drawbacks?

Also is there a way to receive a notification when the data in the underlying data source changes?

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