https://bugs.kde.org/show_bug.cgi?id=470175

            Bug ID: 470175
           Summary: Without focus, XWayland apps cannot get
                    Clipboard/Selection change events from Wayland apps.
    Classification: Plasma
           Product: kwin
           Version: 5.27.5
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: wayland-generic
          Assignee: kwin-bugs-n...@kde.org
          Reporter: shenlebantongy...@gmail.com
  Target Milestone: ---

SUMMARY
Since KDE5.27, if an XWayland app doesn't have focus, then the
QClipboard::Changed won't happen if a user copy text from Wayland apps.

Minimum code sample:
https://github.com/SourceReviver/wayland_clipboard_xwayland_bug

STEPS TO REPRODUCE

1. Run the mini code sample above
2. Select or copy text from somewhere else

OBSERVED RESULT

The label from the sample code won't change unless the window got focused
again.

EXPECTED RESULT

The label should change despite having no focus.

ADDITIONAL INFORMATION

* This only happens when copying text from Wayland to the XWayland apps.
* On KDE 5.26, the sample code can detect clipboard changes without focus 
* The sample code works OK on GNOME Wayland but not OK on Sway, and I don't
know if this is intended. 
      * However, I don't find anywhere in the standards about this detail.


SOFTWARE/OS VERSIONS

ArchLinux

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to