Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 884221

Summary: x11-base/xorg-server-21.1.4[xephyr] Fix mouse and keyboard input
Product: Gentoo Linux Reporter: marius.spix
Component: Current packagesAssignee: Gentoo X packagers <x11>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1192
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Xephyr patch

Description marius.spix 2022-12-03 23:03:42 UTC
Created attachment 839559 [details, diff]
Xephyr patch

Mouse and keyboard input in Xephyr (nested Xorg server) is broken in x11-base/xorg-server-21.1.3.

This can be tested by running "lightdm --test-mode" as a normal user (requires x11-misc/lightdm).

This is fixed in upstart here: https://gitlab.freedesktop.org/xorg/xserver/-/commit/4c03b67d334b05b814239420776f2fdd4c4a98ac

I attached a patch for the issue and can confirm that this patch works.
Comment 1 marius.spix 2023-05-13 23:11:06 UTC
This is still broken in xorg-server-21.1.8 and not merged into upstream’s server-21.1 branch. Applying the patch works, however.

See:
https://gitlab.freedesktop.org/xorg/xserver/-/blob/server-21.1-branch/hw/kdrive/ephyr/ephyrinit.c
https://gitlab.freedesktop.org/xorg/xserver/-/commit/4c03b67d334b05b814239420776f2fdd4c4a98ac
Comment 2 Matt Turner gentoo-dev 2023-10-25 15:38:34 UTC
I've made a backport MR: https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1192
Comment 3 Larry the Git Cow gentoo-dev 2023-10-25 15:41:35 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9b4db39b0d72f93d5c46898cb262d8c5349542cc

commit 9b4db39b0d72f93d5c46898cb262d8c5349542cc
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2023-10-25 15:29:54 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2023-10-25 15:41:30 +0000

    x11-base/xorg-server: Version bump to 21.1.9
    
    Bug: https://bugs.gentoo.org/916254
    Closes: https://bugs.gentoo.org/884221
    Closes: https://bugs.gentoo.org/909092
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 x11-base/xorg-server/Manifest                      |   1 +
 ...1.9-xephyr-Don-t-check-for-SeatId-anymore.patch |  66 +++++++
 x11-base/xorg-server/xorg-server-21.1.9.ebuild     | 194 +++++++++++++++++++++
 3 files changed, 261 insertions(+)