mouse input not working when using x11docker in ssh session
I would like to run the X server in a container on my host machine running Ubuntu 24.04.2 LTS without GUI.
I am able to do so using the command:
x11docker --backend=docker --xorg --xc --gpu --desktop x11docker/xfce
This is working fine when a launch the above command in the terminal window on the host machine. In that case I can also use the mouse and keyboard.
... but when I have an ssh session to my host machine and I run the same command in the ssh session then I cannot use the mouse connected to my host machine.
What do I need to do to be able to use the mouse connected to my host machine when launching x11docker in an ssh session ?
I am using an USB switch to switch my mouse between my host machine and the ssh machine.
The problem is that when I switch the mouse to my host machine after the x11docker application is started on my host machine that I cannot use the mouse ... but if quickly switch the mouse to my host machine immediately after launching the x11docker application then it is working.
In other words connecting the mouse after the x11docker application is started is not working - it must be connected before it is started.
Xorg on your server seems to need to detect the mouse before it runs. Using the switch likely means that you cannot use the mouse on your client then. Or you need to switch every time when you want to use the other machine.
You might try some ssh -X setup like described in the wiki: https://github.com/mviereck/x11docker/wiki/Remote-access-with-SSH