Bug 431411

Summary: wayland Middle mouse button doesnt paste clipboard to apps
Product: [Plasma] kwin Reporter: jsanza <jsanza>
Component: coreAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
URL: https://gitlab.gnome.org/GNOME/gtk/-/issues/2591
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description jsanza 2021-01-11 00:06:04 UTC
SUMMARY


STEPS TO REPRODUCE
1. mouse copy sample text
2. press middle button
3. nothing pasted

OBSERVED RESULT

My middle mouse button can't event , middle button cannot paste the selected text.
I've configured middle button in konsole, gnome-tweaks, and it doesn't work

My kde version 5.20.3 ... you can see below

Operating System: Fedora 33
KDE Plasma Version: 5.20.3
KDE Frameworks Version: 5.75.0
Qt Version: 5.15.2
Kernel Version: 5.9.14
OS Type: 64-bit
And xinput,

$ xinput --list
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ Logitech Wireless Keyboard PID:4023 id=8 [slave pointer (2)]
⎜ ↳ Logitech Wireless Mouse id=9 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ Power Button id=6 [slave keyboard (3)]
↳ Power Button id=7 [slave keyboard (3)]
↳ Logitech Wireless Keyboard PID:4023 id=10 [slave keyboard (3)]
Checking in another way, I was surprised because,

$ xev | grep button
state 0x10, button 1, same_screen YES
state 0x110, button 1, same_screen YES
state 0x10, button 3, same_screen YES
state 0x410, button 3, same_screen YES
state 0x10, button 1, same_screen YES
state 0x110, button 1, same_screen YES
but, NO event pressed middle button !



and using libinput, same problem


$ libinput list-devices
Device: Logitech Wireless Mouse
Kernel: /dev/input/event3
Group: 4
Seat: seat0, default
Capabilities: pointer
Tap-to-click: n/a
Tap-and-drag: n/a
Tap drag lock: n/a
Left-handed: disabled
Nat.scrolling: disabled
Middle emulation: disabled
Calibration: n/a
Scroll methods: button
Click methods: none
Disable-w-typing: n/a
Accel profiles: flat *adaptive
Rotation: n/a
and then,

$libinput debug-events --device /dev/input/event3
event3 POINTER_BUTTON +1.955s BTN_LEFT (272) pressed, seat count: 1
event3 POINTER_BUTTON +2.069s BTN_LEFT (272) released, seat count: 0
event3 POINTER_BUTTON +2.125s BTN_LEFT (272) pressed, seat count: 1
event3 POINTER_BUTTON +3.575s BTN_RIGHT (273) released, seat count: 0
event3 POINTER_BUTTON +3.655s BTN_RIGHT (273) pressed, seat count: 1
event3 POINTER_BUTTON +3.777s BTN_RIGHT (273) released, seat count: 0
no event pressing middle button...

what can i do to enable middle mouse button to paste selected text?

Tx 
EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: fedora 33 KDE wayland
(available in About System)
KDE Plasma Version: 5.20.3 
KDE Frameworks Version: 5.75.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Comment 1 Vlad Zahorodnii 2021-01-11 08:40:32 UTC
We've implemented the primary-selection protocol, however up to some point GTK was using its own proprietary primary selection protocol. Starting with 3.24.24, this issue should be gone.