xev: Changes to 'master'
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Jul 28 07:16:29 UTC 2025
xev.c | 21 +++++++++++++++++++--
1 file changed, 19 insertions(+), 2 deletions(-)
New commits:
commit 5d90d0e926cc9bf27c5944f8804ce0ec038947b0
Author: Olivier Fourdan <ofourdan at redhat.com>
Date: Fri Jul 18 17:25:29 2025 +0200
randr: Protect against XErrors getting output info
Xwayland can create and destroy RR outputs as required.
When Xwayland destroys an RR output, xev would receive a RRNotify event
and try to get the output info.
As the output is already destroyed, that will cause an XError which
kills xev:
| RRNotify event, serial 42, synthetic NO, window 0xc00001,
| X Error of failed request: BadRROutput (invalid Output parameter)
| Major opcode of failed request: 140 (RANDR)
| Minor opcode of failed request: 9 (RRGetOutputInfo)
| Serial number of failed request: 45
| Current serial number in output stream: 45
Protect against potential XError when calling XRRGetOutputInfo() to
avoid the issue.
v2: XSync before setting the error handler, to catch pending errors
(Alan Coopersmith <alan.coopersmith at oracle.com>)
Signed-off-by: Olivier Fourdan <ofourdan at redhat.com>
See-also: https://gitlab.freedesktop.org/xorg/xserver/-/issues/1833
Part-of: <https://gitlab.freedesktop.org/xorg/app/xev/-/merge_requests/12>
More information about the xorg-commit
mailing list