[Interest] "QXcbClipboard::setMimeData: Cannot set X11 selection owner"

René J. V. Bertin rjvbertin at gmail.com
Fri Jun 15 11:20:20 CEST 2018


Thiago Macieira wrote:


>> Yeah, DOH :) I don't have the GTk sources on my system currently but it's
>> likely that somewhere there will be a call to xcb_set_selection_owner() in
>> there too, no? That's where the error message I see comes from: the call
>> fails (doesn't have the expected effect).
> 
> Yes, it's likely. That doesn't mean GTK prints something as a result of that.

What exactly is the purpose of using the XCB selection owner functionality? 
Something like "clear the clipboard when the application exits"? 

I'd probably prefer not using selection ownership over the risk of no longer 
being able to copy things to the clipboard. Or would a reset as performed by 
QXcbClipboard::handleXFixesSelectionRequest() help here?

FWIW, I notice that GTk(3) doesn't use 
xcb_xfixes_select_selection_input_checked() at all, so there's another possible 
reason why GTk applications are not affected when the issue hits me.


R.




More information about the Interest mailing list