Comment 197 for bug 11334

Revision history for this message
Guilhem (logik-free) wrote :

This bug is harder to fix than I thought : I thought it was the X server's responsability to claim the xclipboard when an client exits (thus a bug in Xorg), but the freedesktop xclipboard specification are very clear :

" If a client needs to exit while owning the CLIPBOARD selection, it should request the clipboard manager to take over the ownership of the clipboard, using the SAVE_TARGETS mechanism. If there is no clipboard manager, or if the SAVE_TARGETS conversion fails, the application should simply exit. " [http://www.freedesktop.org/wiki/ClipboardManager]

#1 If we follow the specs, every client that does not follow it has to be updated ; might take much longer time than changing Xserver's role in clipboard managment. #2 On the other hand, adapting the specs and Xserver behaviour might solve it for every client at the great risk of breaking lots of living apps out there.

I still think we should go for #2, extending it to allow Xserver to grab Xselection as soon as CTRL-C is called ; this way it could prevent a clipboard loss in case the client freezes.

What should we do ?