Mouse stopped clicking in CentOS running in Virtual Box

Mouse stopped clicking in CentOS running in Virtual Box

I have an CentOS 7 VM in the VirtualBox 6 running on Windows. I have just installed it and immediately updated whole system (sudo yum update), as result kernel version 3.10.0-957.1.3.el7 was installed.
After I rebooted and logged in into the system, mouse started working strange. Mouse can be moved, application menu can be opened, but inside it no reaction in mouse movements. Also most of UI doesn’t react to mouse clicks. I’ve searched internet and tried various ways, but nothing helps.
It is fresh install, I don’t have VirtualBox guest additions installed yet. But right after installation everything worked and stopped to work after update. Does anyone know what may be the reason and how to solve this?
Rebooting with previous kernel doesn’t help. Maybe something with It was updated too. But I don’t see any error in the /var/log/Xorg.0.log
Update #1: This recipe have helped. I have create mouse configuration file /etc/X11/xorg.conf.d/01-mouse.conf with content like this
Section “InputDevice”
Identifier “Mouse0”
Driver “mouse”
Option “Protocol” “auto”
Option “Device” “/dev/input/event3”
Option “ZAxisMapping” “6 7”

Actual mouse device path (/dev/input/event3) was taken from the latest /var/log/Xorg.0.log — look for “VirtualBox mouse integration”.
Update #2: I have found that if you log in first time, then somehow run console, and restart desktop manager service (sudo service gdm restart) – it will get you back to login screen – then everything works good on the second time login, even without such file. Can’t explain myself what can be the reason.
Update #3: RH acknowledged the issue and works on the fix.
Update #4: After today’s update problem has gone.
Now I’m having:
Linux centos7 3.10.0-957.10.1.el7.x86_64 #1 SMP Mon Mar 18 15:06:45 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Related:  Apache is downloading php files instead of displaying them


Solution 1:

I have the similar issue with Centos 7.4 on VirtualBox 5 recently.

Once I left-click and start working on an application, I could not left-click on any other part nor applications to switch the focus.

My work-around is to right click the mouse on the stuck application twice. A context menu will pop up and go away. Then I can left-click any other parts of the desktop. Of course, doing this every time when one wants to switch the focus is still annoying but at least workable.