我将我的 ubuntu 从 21.10 impish 切换到 22.04 jammy,这意味着要离开 x11 前往 Wayland。
我通过在我的.bashrc中完全禁用此行的中间单击来防止未经请求的选择粘贴或不需要的关闭选项卡:
xinput set-prop 'Synaptics TM3289-021' 'libinput Middle Emulation Enabled' 1
它在 x11 上运行良好。升级后,我收到此错误消息
WARNING: running xinput against an Xwayland server. See the xinput man page for details.
无法找到设备 Synaptics TM3289-021
当我这样做时xinput list
,我没有拿到我的触摸板,而是
WARNING: running xinput against an Xwayland server. See the xinput man page for details.
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ xwayland-pointer:16 id=6 [slave pointer (2)]
⎜ ↳ xwayland-relative-pointer:16 id=7 [slave pointer (2)]
⎜ ↳ xwayland-pointer-gestures:16 id=8 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ xwayland-keyboard:16 id=9 [slave keyboard (3)]
如何使用 Wayland 协议禁用中键?