[Libreoffice-bugs] [Bug 140404] No "Paste Special" dialog on Wayland with kf5 vclplug

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Mon Apr 5 22:06:04 UTC 2021


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

Jan-Marek Glogowski <glogow at fbihome.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|libreoffice-bugs at lists.free |glogow at fbihome.de
                   |desktop.org                 |
             Blocks|                            |102495
                 CC|glogow at fbihome.de,          |
                   |m.weghorn at posteo.de         |

--- Comment #7 from Jan-Marek Glogowski <glogow at fbihome.de> ---
I reproduced this with "weston --xwayland" and QT_QPA_PLATFORM=wayland. My
Debian buster is too old, so "kwin_wayland --xwayland" just crashes LO.
Actually just "make debugrun" made LO to start without a SIGSEGV, which doesn't
look like the old KDE Wayland memory corruption bug :-( But I digress...

Debugging shows, that Wayland generates two QClipboard::changed events, one
after LO sets the clipboard and one a bit later. AFAIK the 2nd one is not
triggered by LO directly, but I didn't try to debug Qt. Both have LO set as
owners of the clipboard, but the previous assumption of the code, "set
clipboard == one notification event", is broken by this, so the 2nd
notification is actually handled as lost ownership, so LO won't handle it using
the "internal" clipboard, resulting multiple bugs.

Pending patch: https://gerrit.libreoffice.org/c/core/+/113617

That fixes the bug for me and generally looks more correct and simpler,
code-wise. Hope that doesn't introduce other problems; the clipboard code is a
bit fragile and took quite some time to get "right".


Referenced Bugs:

https://bugs.documentfoundation.org/show_bug.cgi?id=102495
[Bug 102495] [META] KDE VCL backend bugs and enhancements
-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210405/9b8b0c6f/attachment.htm>


More information about the Libreoffice-bugs mailing list