Skip to content
  • Michal Srb's avatar
    Do not cancel old clipboard selection if it is same as the new one. · 0e580ae9
    Michal Srb authored and Fabian Vogt's avatar Fabian Vogt committed
    Summary:
    GTK applications seem to call wl_data_device::set_selection multiple times with
    the same wl_data_source object, replacing it with itself. If we cancel it, they
    will destroy it and the selection will be gone.
    
    With this patch it is again possible to copy from GTK applications.
    
    BUG: 395366
    
    Test Plan: Patch provided by the reporter, he reported success.
    
    Reviewers: #plasma, #frameworks, romangg
    
    Reviewed By: #plasma, romangg
    
    Subscribers: michalsrb, romangg, graesslin, kde-frameworks-devel
    
    Tags: #frameworks
    
    Differential Revision: https://phabricator.kde.org/D13535
    0e580ae9