I was trying to make my screen capture work in OBS, `
I found a solution.
Firstly you need to install the Xorg package
sudo apt-get update
sudo apt-get install xserver-xorg
In this file /etc/gdm3/custom.conf (to access it for editing, you could run sudo nano /etc/gdm3/custom.conf), uncomment (remove the leading #) this line
WaylandEnable=false
save and exit.
Then run this command in the terminal
sudo systemctl restart gdm3
Happy Ubuntu :)
`
I followed these steps, the obs seemed to work but now my multi touch feature doen't work