Skip to content
  • Martin Flöser's avatar
    [server] When replacing the clipboard selection previous DataSource needs to be cancelled · 81635159
    Martin Flöser authored
    Summary:
    According to the Wayland documentation a data source needs to be
    cancelled whenever it is no longer valid. A reason for no longer being
    valid is that the data source has been replaced by another data source.
    
    So far KWayland did not implement this aspect which resulted in clipboard
    breaking in QtWayland applications. As soon as one copied once from an
    application it was no longer possible to paste to it from another
    application.
    
    With this change the data source gets properly cancelled and also
    ensured that the server code doesn't run into a possible crash condition
    when trying to cancel an already unbound data source.
    
    BUG: 368391
    
    Reviewers: #plasma_on_wayland
    
    Subscribers: plasma-devel
    
    Tags: #plasma_on_wayland
    
    Differential Revision: https://phabricator.kde.org/D2743
    81635159