Xpra-org / xpra

Persistent remote applications for X11; screen sharing for X11, MacOS and MSWindows.
https://xpra.org/
GNU General Public License v2.0
1.92k stars 165 forks source link

Fix x11 clipboard INCR protocol #4322

Closed unisons closed 1 month ago

unisons commented 1 month ago

Need to call XDeleteProperty api to receive more data from sender. Without this, in my computer when I am trying to copy lots of data, the clipboard is failed and stops to work even with small size of data copy before restarting the service.

My setup is: Server : Ubuntu 24.04 Client : Windows 11

Please refer to the below documents.

https://www.x.org/releases/X11R7.6/doc/xorg-docs/specs/ICCCM/icccm.html#large_data_transfers https://www.x.org/releases/X11R7.6/doc/xorg-docs/specs/ICCCM/icccm.html#incr_properties

Waits between each append for a PropertyNotify (state==Deleted) event that shows that the requestor has read the data. The reason for doing this is to limit the consumption of space in the server.

Deleted state can be set by calling XDeleteProperty()

totaam commented 1 month ago

Thanks!

I'm not sure how I got it to work without XDeleteProperty!?