Linux Programmer | RHCE | RHCSA

Search This Blog

Tuesday, 5 May 2026

M3 Button not working in Wayland

Mouse M3 button not working in wayland - ubuntu 26.04

1. Check your desktop

Run:

echo $XDG_SESSION_TYPE
echo $XDG_CURRENT_DESKTOP

2. If you are using GNOME

Enable middle-click paste:

gsettings set org.gnome.desktop.interface gtk-enable-primary-paste true

Check it:

gsettings get org.gnome.desktop.interface gtk-enable-primary-paste

It should return:

true

Done. 

M3 Button not working in Wayland

Mouse M3 button not working in wayland - ubuntu 26.04 1. Check your desktop Run: echo $XDG_SESSION_TYPE echo $XDG_CURRENT_DESKTOP 2. If...