[PATCH xf86-video-nested v4 00/11] xf86-video-nested revival

Laércio de Sousa laerciosousa at sme-mogidascruzes.sp.gov.br
Fri Nov 13 10:28:00 PST 2015


Despite the large version bump, this is indeed the
second time I submit the full patch series. I did it
because I've sent previously a v2 and v3 of some patches
only. This version fixes some memory leaks and brings
some changes to XCB client, following Uli Schlachter's advices.

Almost one year after my previous patch series
(http://lists.x.org/archives/xorg-devel/2014-October/044501.html),
I'm bringing up this new one to improve xf86-video-nested driver.

I've implemented a new XCB backend client, trying to pair it with
latest Xephyr code, so that we can port any Xephyr optimizations
to this driver. For this series, I've added all the xcb-xkb missing parts
to get keymap translation from bottom-layer Xorg to nested one
working properly, so this new backend can replace Xlib completely.

My main motivation for this driver is making single-GPU multi-seat
configuration (i.e. launching nested X servers on top of a bare
X server spanning all available video outputs) more reliable, so
I'm disabling integrated nested input driver if -seat option is passed
to nested Xorg. However, I believe it can also be handy for testing
purposes, since it allows running Xorg itself nested in a window
within user session.

Compared to Xephyr, this driver still lacks some graphical optimizations,
GLAMOR support, etc., but it's still a much better approach for multi-seat,
because Xorg itself provides better input devices handling than kdrive.

I need help to port any relevant features present in Xephyr to this XCB backend.

Laércio de Sousa (11):
  Fix compilation warnings.
  Add support for option "Xauthority" in xorg.conf
  Add preliminary support for screen options "Fullscreen" and "Output"
    in xorg.conf
  Add configure option for choosing driver backend
  Fix an "array index out of bounds" error in
    _nested_input_init_buttons().
  Fix several memory leaks detected by valgrind.
  Don't load nested input driver if Xorg is started with option "-seat
    (...)"
  Remove expurious <default pointer> device when using nested input.
  Introduce a new XCB client backend, and make it the default one.
  Update README and TODO.
  Update overall coding style (braces and if-clauses)

 README             |   60 ++-
 TODO               |    8 +-
 configure.ac       |   25 +-
 src/Makefile.am    |    9 +-
 src/client.h       |   25 +-
 src/driver.c       |  546 ++++++++++++++------------
 src/nested_input.c |  187 +++++----
 src/xcbclient.c    | 1095 +++++++++++++++++++++++++++++++++++++++++++++++++++-
 src/xlibclient.c   |   14 +-
 9 files changed, 1563 insertions(+), 406 deletions(-)

-- 
2.1.4



More information about the xorg-devel mailing list