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

            Bug ID: 523806
           Summary: Wayland: primary selection randomly loses beginning of
                    text
    Classification: Plasma
           Product: kwin
      Version First 6.7.3
       Reported In:
          Platform: Arch Linux
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: input
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: ---

DESCRIPTION

Sometimes, when selecting a text, then using primary-paste to paste it
elsewhere the result lacks some small part at the beginning. Most annoyingly it
happens when copy-pasting commands from browser to terminal, because you
immediately press "Enter", and then terminal says "invalid command" because the
beginning of the text got eaten by KWin.

Actually, it is a long-standing problem, which I remember to have seen ever
since I moved to Wayland from X11. But nobody (me included), it seems, have
reported it, because it's hard to reproduce on purpose. I found no pattern so
far (happens both with Wayland and XWayland apps, and I've just seen it
happening within a single app — copy-paste from tab to tab inside Qutebrowser).
It happens randomly, and re-selecting same text "fixes" it.

One pattern (which may or may not be a coincidence) I noticed: the "missing
part" seemingly depends on the selection style — if you selected
letter-by-letter (i.e. single-click + drag), it is a letter that is missing; if
you selected word-by-word (i.e. double-click + drag), it is the first word that
is missing. I can't remember if I've seen more than one letter or word to be
missing, so it may be an "off-by-one" error somewhere.

Sorry I haven't found reliable steps-to-reproduce, but please do tell if
there's any logs or experiments I could do here.

STEPS TO REPRODUCE

1. As mentioned it is random, but you just select a text (without explicitly
copying), then use middle mouse button to paste it elsewhere.

OBSERVED RESULT

The pasted text lacks a letter or a word at the beginning.

EXPECTED RESULT

The beginning of the pasted text matches whatever was selected.

SOFTWARE/OS VERSIONS

Operating System: Arch Linux
KDE Plasma Version: 6.7.3
KDE Frameworks Version: 6.28.0
Qt Version: 6.11.1
Kernel Version: 7.1.5-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 7430U with Radeon Graphics
Memory: 16 GiB of RAM (15.0 GiB usable)
Graphics Processor: AMD Radeon Graphics

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

Reply via email to