Tk Source Code

Ticket Change Details
Login
Overview

Artifact ID: ac95d79f6fc3f74298a08051ac4f15ad5cc9f8b9
Ticket: 28d0b8fb2ff991fde1483a88f159c0449fd8108f
Delete the property used for X selection conversion before requesting the conversion
User & Date: dpb 2017-07-24 00:29:42
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed to:
    <tt>TkSelGetSelection</tt> requests an X selection conversion. According to the ICCCM section "Requesting a Selection",
    
    <blockquote>Requestors should ensure that the named property does not exist on the window before issuing the <tt>ConvertSelection</tt> request. The exception to this rule is when the requestor intends to pass parameters with the request (see below).</blockquote>
    
    Since <tt>TkSelGetSelection</tt> provides no way to supply a parameter for the conversion request, it should delete the property before making the request. Otherwise, the current value of the property (which is the result of the previous conversion request for the same selection) may be unintentionally interpreted by the selection owner as the parameter.
    
  5. is_private changed to: "0"
  6. login: "dpb"
  7. priority changed to: "5 Medium"
  8. private_contact changed to: "d7525f76e0d0b7da27c233ac1b79319d0f7e3217"
  9. resolution changed to: "None"
  10. severity changed to: "Minor"
  11. status changed to: "Open"
  12. submitter changed to: "dpb"
  13. subsystem changed to: "53. [selection]"
  14. title changed to:
    Delete the property used for X selection conversion before requesting the conversion
    
  15. type changed to: "Patch"