Occasional cursor loss and mouse clicks have no response
Affected version
OS: Ubuntu 18.04(gnome 3.28)、Ubuntu 22.04.2(gnome 42.5)、Ubuntu 23.04(gnome 44.0),VanillaOS 22.10(gnome 43.1) Mutter: 3.28~44 Server: XOrg
Bug summary
System environment: One monitor, one touch screen, keyboard, mouse.
Occasionally, the cursor disappears during use, and both touch and mouse clicks have no response. This issue does not occur in XWayland session. In addition, I have tried comparing Kubuntu, Lubuntu, Xubuntu, and several other distributions, and this issue only occurs in X11 + GNOME Shell environment.
Steps to reproduce
Using a screen clicker can greatly increase the probability of reproducing the issue.
- Choose Xorg session to log in to the desktop in Ubuntu 22.04 system.
- Open two Nautilus windows (or other windows) on the touch screen.
- Use a screen clicker to simultaneously click on both windows (at a frequency of 15 clicks per second).
What happened
- After a while, both windows cannot be activated properly. Moving the mouse does not show the cursor, and clicking the mouse or using the touch screen does not have any response.
- The keyboard response is normal, and everything returns to normal by invoking the overlay using the Super key.
- Print syslog "Window manager warning: last_focus_time (6321501) is greater than comparison timestamp (6321481). This most likely represents a buggy client sending inaccurate timestamps in messages such as _NET_ACTIVE_WINDOW. Trying to work around... FOCUS: Focus in event received on 0xe00008 0xe00008 (client window) mode NotifyNormal detail NotifyAncestor serial 517066"
What did you expect to happen
Resolving the issue of mouse clicks and touch not responding.
Relevant logs, screenshots, screencasts etc.
A syslog in time 10:12:46, with "export MUTTER_DEBUG=FOCUS,WINDOW_OPS" in ~/.profile, but I found that increasing mutter debug log information will decrease the reproduction probability.