Description of problem: If I highlight text (from gnome-terminal, chrome, etc) and try to middle-click to paste the highlighted text to kate, nothing happens. This worked before I upgraded from Fedora 30 (kate v. 19.04.2). After I updated to Fedora 31 (kate v. 19.08.2), it stopped working. Thinking it might have been a problem with the update, I booted the live USB image. I installed kate there, and the issue remains. So I don't believe it is related to profile or update process itself. Version-Release number of selected component (if applicable): Kate v. 19.08.2 (as reported by kate's help) kate.x86_64 19.08.2-1.fc31 kate-plugins.x86_64 19.08.2-1.fc31 kate4-part.x86_64 4.14.3-25.fc31 kde-apps-rpm-macros.noarch 6:4.14.38-15.fc31 kde-cli-tools.x86_64 5.16.5-1.fc31 kde-filesystem.x86_64 4-62.fc31 kde-l10n.noarch 17.08.3-7.fc31 kde-platform-plugin.x86_64 1:4.11.22-26.fc31 kde-settings.noarch 31.0-1.fc31 kde-style-breeze.x86_64 5.16.5-1.fc31 kde-workspace-common.noarch 1:4.11.22-26.fc31 kdebase3.x86_64 3.5.10-58.fc31 kdebase3-libs.x86_64 3.5.10-58.fc31 kdebase3-pim-ioslaves.x86_64 3.5.10-58.fc31 kdelibs.x86_64 6:4.14.38-15.fc31 kdelibs-common.x86_64 6:4.14.38-15.fc31 kdelibs-devel.x86_64 6:4.14.38-15.fc31 kdelibs-ktexteditor.x86_64 6:4.14.38-15.fc31 kdelibs-webkit.x86_64 6:4.14.38-15.fc31 kdelibs-webkit-devel.x86_64 6:4.14.38-15.fc31 kdelibs3.x86_64 3.5.10-101.fc31 kdenlive.x86_64 19.08.2-1.fc31 kdepimlibs.x86_64 4.14.10-34.fc31 kdepimlibs-akonadi.x86_64 4.14.10-34.fc31 kdepimlibs-devel.x86_64 4.14.10-34.fc31 kdepimlibs-gpgme.x86_64 4.14.10-34.fc31 kdepimlibs-kxmlrpcclient.x86_64 4.14.10-34.fc31 kdesdk-thumbnailers.x86_64 19.04.3-2.fc31 kdesu.x86_64 1:5.16.5-1.fc31 kdevelop.x86_64 9:5.4.3-1.fc31 kdevelop-libs.x86_64 9:5.4.3-1.fc31 kdewebdev.x86_64 6:3.5.10-38.fc31 kdewebdev-libs.x86_64 6:3.5.10-38.fc31 kf5-kdeclarative.x86_64 5.61.0-2.fc31 kf5-kdesu.x86_64 5.61.0-1.fc31 libblockdev.x86_64 2.23-1.fc31 libblockdev-btrfs.x86_64 2.23-1.fc31 libblockdev-crypto.x86_64 2.23-1.fc31 libblockdev-dm.x86_64 2.23-1.fc31 libblockdev-fs.x86_64 2.23-1.fc31 libblockdev-kbd.x86_64 2.23-1.fc31 libblockdev-loop.x86_64 2.23-1.fc31 libblockdev-lvm.x86_64 2.23-1.fc31 libblockdev-mdraid.x86_64 2.23-1.fc31 libblockdev-mpath.x86_64 2.23-1.fc31 libblockdev-nvdimm.x86_64 2.23-1.fc31 libblockdev-part.x86_64 2.23-1.fc31 libblockdev-plugins-all.x86_64 2.23-1.fc31 libblockdev-swap.x86_64 2.23-1.fc31 libblockdev-utils.x86_64 2.23-1.fc31 libblockdev-vdo.x86_64 2.23-1.fc31 libkate.x86_64 0.4.1-18.fc31 libkate-docs.noarch 0.4.1-18.fc31 libkate-utils.x86_64 0.4.1-18.fc31 How reproducible: 100% Steps to Reproduce: 1. Install 'kate' and 'kate-plugings' 2. Highlight something, switch to kate, middle click 3. Observe nothing happen Actual results: Can't highlight -> middle-click Expected results: Can highlight -> middle-click Additional info:
Further testing shows this is related to Wayland. If I log into gnome under Xorg, middle-click pasting works fine. When logged into Gnome (alone, at the login screen), it doesn't work. I verified the window manager with 'loginctl show-session X -p Type'.
Further info; I installed plasma-workspace-wayland kwin-wayland. When I log in with 'Plasma', it works. loginctl shows it's still Wayland. However, when I log in with "Plasma Wayland", where loginctl shows it's still wayland, it doesn't work. So to summarize; * Middle-click works with Xorg and Plasma * Middle-click does NOT work with Gnome and Plasma Wayland
Another note; I used gnome-tweak-tool to check that middle-click paste was enabled, and it was. I tried disabling and then re-enabling it without success.
Indeed, Qt5 does not yet support gnome's primary selection protocol yet, https://bugreports.qt.io/browse/QTBUG-66008 *** This bug has been marked as a duplicate of bug 1756375 ***