You need to log in on an Xorg session for making this work.
Using GUI
- Log out using the "logout" option in the system menu (when you click
on the combined wifi/speaker/battery icon in the top right.
- In the login screen, select your username so you could type your
password
- Before typing your password, click the cog wheel on the bottom
right, then select "Ubuntu on Xorg". Now enter your password and log
in.
Using CLI
Open a command liner terminal and use any text editor (We are using vi) and open this file with root permission.
sudo vi /etc/gdm3/custom.conf
Look for the line that says "WaylandEnable=true". Change it to "WaylandEnable=false".
Now restart the GDM3 or reboot your desktop.
$ sudo systemctl restart gdm3
To check the current version, run this code in the Terminal:
echo $XDG_SESSION_TYPE
dconf-editoror anywhere else. – Avio Sep 14 '23 at 14:49/that makes5change mode from left click to right click, thanks! – Avio Oct 04 '23 at 15:09