https://bugs.documentfoundation.org/show_bug.cgi?id=158947

            Bug ID: 158947
           Summary: Pasting clipboard contents is not possible under
                    certain circumstances with Wayland
           Product: LibreOffice
           Version: 7.5.2.2 release
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]

Description:
Selecting and copying text in LO Writer BEFORE trying to copy text into LO
Writer from somewhere else, results in the original LO selected text being
copied into the clipboard, deletion of the selected text from LO Writer, and an
error saying the clipboard format is not available. This is reproducible in
Safe Mode.

Steps to Reproduce:
Using KDE Plasma (5.27.9) with Wayland i.e. KWin on Debian (Trixie)
1. Open LO Writer (7.6.4~rc1-1+b2)
2. Open (for example) Firefox (115.6.0esr-1)
3. Select and copy text in LO, leaving the text selected
4. Alt+Tab away into Firefox
5. Copy some text in Firefox
6. Alt+Tab back into LO, where the original text is still selected
7a. Try to paste, OR
7b. Click in LO Writer to deselect text, select some text again, then try to
paste

Actual Results:
The selected text gets deleted (perhaps due to pasting nothing over the
selected text, rather than pasting the text in clipboard?) and the original
text that was selected in LO is copied into clipboard. An error message shows
saying the clipboard format is not available.

Expected Results:
The text in the clipboard should be pasted over (replace) the selected text in
LO Writer.


Reproducible: Always


User Profile Reset: No

Additional Info:
This is reproducible in Safe Mode.
The problem occurs when pasting from places other than Firefox (Konsole,
Mousepad, Kate etc). In these cases the behaviour is the same.
I don't have this problem in LO Calc.
Deselecting the text in LO Writer before pasting works fine and pastes the
clipboard.
Copying between LO Writer and Calc always works fine.

Using Ctrl+Shift+V and selecting paste unformatted, doesn't work REGARDLESS of
whether text is selected and copied in LO Writer. This seems similar / same
behaviour as here https://bugs.documentfoundation.org/show_bug.cgi?id=156562 
and here https://bugs.documentfoundation.org/show_bug.cgi?id=157373

Discussion of related problem in KDE bug tracker:
https://bugs.kde.org/show_bug.cgi?id=470334

These problems existed in LO version 7.5.2.2 installed from the website
download, I have updated to LO 7.6.4.1 from the repo and the problem persists.


Help → About LibreOffice:
Version: 7.6.4.1 (X86_64) / LibreOffice Community
Build ID: 60(Build:1)
CPU threads: 4; OS: Linux 6.5; UI render: default; VCL: kf5 (cairo+wayland)
Locale: cy-GB (en_GB.UTF-8); UI: en-US
Debian package version: 4:7.6.4~rc1-1+b2
Calc: threaded

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to