[PATCH 0/3] Add an XFixesGetScreenLayout query

Aaron Plattner aplattner at nvidia.com
Tue Jul 28 21:51:34 PDT 2009


These changes add a new request to the Fixes extension that allows X clients to
query the positions and layout of the X screens.  This is useful for X
configurator programs like nvidia-settings to display the current server layout
and be able to produce a reasonable config file that resembles it.  Currently,
it's impossible for configurator programs to get the layout without trying ot
parse the current config file, which is prone to failure.

fixesproto:
  Add a query to get the screen layout.

 configure.ac   |    2 +-
 fixesproto.txt |   39 ++++++++++++++++++++++++++++++++++++---
 xfixesproto.h  |   27 +++++++++++++++++++++++++++
 xfixeswire.h   |   27 +++++++++++++++++++++++++--
 4 files changed, 89 insertions(+), 6 deletions(-)

libXfixes:
  Add a query to get the screen layout.

 configure.ac                    |    2 +-
 include/X11/extensions/Xfixes.h |   14 ++++++++
 src/Layout.c                    |   66 +++++++++++++++++++++++++++++++++++++++
 src/Makefile.am                 |    1 +
 4 files changed, 82 insertions(+), 1 deletions(-)
 create mode 100644 src/Layout.c

xserver:
  Fixes: Add a query to get the screen layout.

 configure.ac                   |    2 +-
 dix/globals.c                  |    2 +-
 hw/xfree86/common/xf86Cursor.c |   12 ++++++
 include/globals.h              |    8 +++-
 xfixes/Makefile.am             |    1 +
 xfixes/layout.c                |   86 ++++++++++++++++++++++++++++++++++++++++
 xfixes/xfixes.c                |   12 ++++-
 xfixes/xfixesint.h             |    9 ++++
 8 files changed, 126 insertions(+), 6 deletions(-)
 create mode 100644 xfixes/layout.c


More information about the xorg-devel mailing list