Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-132260

QClipboard does not finalize pasting on wayland

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P2: Important
    • None
    • 5.15.16
    • QPA: Wayland
    • None
    • Wayland with wlroots
    • Linux/Wayland

    Description

      Clipboard clients (e.g., the wl-paste CLI tool) seem to not be notified after receiving clipboard data from QClipboard when running on wayland, presumably due to QClipboard's zwlr_data_control_source_v1 implementation not closing its file descriptor (though that is simply an educated guess).

      The attached C++ file is a minimal example, when wl-paste is run together with the example, it never exits (indicating an incomplete transaction). In contrast, pasting data from other programs (e.g., Firefox) results in wl-paste exiting right afterwards (indicating a complete transaction).

      The output of both test cases is shown in the attached screenshot.

      Attachments

        1. img.png
          img.png
          37 kB
        2. test.cpp
          0.5 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.graphics.and.multimedia Qt Graphics Team
            sofia Sofia Daronco
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes