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

            Bug ID: 506325
           Summary: Text selection and primary clipboard malfunction on
                    non-Qt applications
    Classification: Plasma
           Product: kwin
      Version First 6.4.0
       Reported In:
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

SUMMARY

This bug occurs when user is trying to paste primary clipboard from non-Qt app
to Qt one. 

Lets say there are two apps opened: KWrite and Meld. The user is working in
KWrite, while Meld is located on the side. The user is then trying to select
text from Meld and paste it in KWrite with middle click or shortcut
(CTRL+SHIFT+INS default). It will work on the first occasion, but on the second
occasion apps like Meld and Cherrytree will reject selection. Simply, if user
starts to drag pointer for purpose of selecting text, no selection will occur.
It will be skipped/rejected by the app. If user then try to paste in KWrite,
secondary clipboard will be pasted. 

On the other side, if instead of Meld user is trying to use LibreOffice Writer,
on second occasion selecting text will be accepted by Writer, but when trying
to paste the primary clipboard to KWrite, secondary clipboard will be pasted
instead. It appears that every second paste malfunction.

These bugs do not occur when user double-click to select a word. 
Furthermore, everything works fine if user, while working on KWrite, first
click on Meld/Writer, thus make it active, and then starts to drag a cursor to
select text.

STEPS TO REPRODUCE with Meld
1. Ensure the secondary clipboard contains some text
2. Open KWrite and Meld side by side
3. From KWrite directly click on Meld and drag cursor to select text
4. Paste primary clipboard to KWrite
5. Repeat 3. and 4.

OBSERVED RESULT
There will be no text selected within Meld on second occasion, but only
secondary clipboard can be pasted in KWrite.

EXPECTED RESULT
There should be text selected within Meld on second occasion, but primary
clipboard should be pasted in KWrite.

STEPS TO REPRODUCE with LibreOffice Writer
1. Ensure the secondary clipboard contains some text
2. Open KWrite and LibreOffice Writer side by side
3. From KWrite directly click on LibreOffice Writer and drag cursor to select
text
4. Paste primary clipboard to KWrite
5. Repeat 3. and 4.

OBSERVED RESULT
Text will be text selected within LibreOffice Writer, but secondary clipboard
will be pasted in KWrite.

EXPECTED RESULT
Text will be text selected within LibreOffice Writer, but primary clipboard
should be pasted in KWrite.


SOFTWARE/OS VERSIONS
Operating System: EndeavourOS 
KDE Plasma Version: 6.4.1
KDE Frameworks Version: 6.15.0
Qt Version: 6.9.1
Kernel Version: 6.15.4-arch2-1 (64-bit)
Graphics Platform: Wayland

ADDITIONAL INFORMATION
I'm not sure if 6.4.0 is the first version this occurs, maybe even earlier.

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

Reply via email to