Find a file
Aaron Plattner 50b9d3142f randr: check rotated virtual size limits correctly
Commit d1107918d4 introduced checks to
the RandR path that cause RRSetScreenConfig requests to fail if the
size is too large.  Unfortunately, when RandR 1.1 rotation is enabled
it compares the rotated screen dimensions to the unrotated limits,
which causes 90- and 270-degree rotation to fail unless your screen
happens to be square:

  X Error of failed request:  BadValue (integer parameter out of range for operation)
    Major opcode of failed request:  153 (RANDR)
    Minor opcode of failed request:  2 (RRSetScreenConfig)
    Value in failed request:  0x780
    Serial number of failed request:  14
    Current serial number in output stream:  14

Fix this by moving the check above the code that swaps the dimensions
based on the rotation.

Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Tested-by: Robert Hooker <robert.hooker@canonical.com>
Tested-by: Kent Baxley <kent.baxley@canonical.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
(cherry picked from commit b6c7b9b2f3)
2011-05-28 17:29:41 -07:00
composite composite: Support updating an arbitrary subtree 2011-01-05 11:57:31 -08:00
config config: handle device change event properly 2011-03-28 12:18:21 -07:00
damageext Set DamageSetReportAfterOp to true for the damage extension 2010-11-10 15:51:27 -08:00
dbe Clean up memory better when GetVisualInfo fails in ProcDbeGetVisualInfo 2011-05-13 23:36:28 -07:00
dix XQuartz: Don't call mieqEnqueue during server shutdown 2011-05-16 18:47:20 -07:00
doc man: refactor common code in the man pages makefiles 2011-01-18 15:11:10 -08:00
exa EXA/mixed: ModifyPixmapHeader pitch fixes. (bug #33929) 2011-02-24 19:38:20 -08:00
fb fb: fix memory leak in fbOverlayFinishScreenInit 2011-04-04 17:27:12 +03:00
glx glx: Make --disable-dri not disable AIGLX 2011-05-04 13:15:58 -04:00
hw XQuartz: Don't crash if CG increases our display resolution 2011-05-22 21:39:42 -07:00
include Xi: fix valuator alignment in DeepCopyDeviceClasses (#36119) 2011-05-04 09:32:36 +10:00
m4 Add macro for detecting thread local storage support. 2011-01-08 08:42:49 -08:00
mi XQuartz: Don't call mieqEnqueue during server shutdown 2011-05-16 18:47:20 -07:00
miext rootless: Fix a typo in RootlessGlyphs which resulted in a garbage value 2011-04-27 18:57:06 -07:00
os os: Silence warnings when building with clang 2011-05-11 12:26:53 -07:00
randr randr: check rotated virtual size limits correctly 2011-05-28 17:29:41 -07:00
record Only free pContext once when AddResource fails in ProcRecordCreateContext 2011-05-13 23:35:43 -07:00
render render: fix memory leaks in ProcRenderCompositeGlyphs 2011-04-04 17:27:12 +03:00
test Xi: fix valuator alignment in DeepCopyDeviceClasses (#36119) 2011-05-04 09:32:36 +10:00
Xext Xext: fix test on extension number for the swapped case. 2011-04-07 08:36:59 +10:00
xfixes xorg: remove unused pointer values all over the server 2011-04-04 17:27:12 +03:00
Xi Xi: don't swap the status byte in the XIPassiveGrab replies 2011-05-04 10:14:10 +10:00
xkb XkbAddGeomProperty: Fix checks for malloc failure 2011-04-07 08:36:57 +10:00
.gitignore .gitignore: use common defaults with custom section #24239 2009-11-11 21:40:20 -08:00
autogen.sh autogen.sh: Pass --force to autoreconf 2008-07-22 16:55:26 +03:00
configure.ac configure.ac: Bump version to 1.10.2 2011-05-28 16:59:05 -07:00
COPYING Add asprintf() implementation for platforms without it 2010-12-07 11:10:35 -08:00
fix-miregion Change region implementation names to eliminate the 'mi' prefix 2010-06-05 17:47:32 -07:00
fix-miregion-private Change region implementation names to eliminate the 'mi' prefix 2010-06-05 17:47:32 -07:00
fix-patch-whitespace Rename region macros to eliminate screen argument 2010-06-05 18:59:00 -07:00
fix-region Rename region macros to eliminate screen argument 2010-06-05 18:59:00 -07:00
Makefile.am remove dolt 2010-09-30 17:44:59 -07:00
manpages.am man: refactor common code in the man pages makefiles 2011-01-18 15:11:10 -08:00
README packaging: provide a default README file #24206 2010-01-27 14:00:17 -08:00
xorg-server.m4 macros: use PKG_CONFIG variable rather than executable name 2010-01-07 12:57:23 -08:00
xorg-server.pc.in config: declare xserver private dependencies in xorg-server.pc 2010-06-22 11:34:47 -07:00

					X Server

The X server accepts requests from client applications to create windows,
which are (normally rectangular) "virtual screens" that the client program
can draw into.

Windows are then composed on the actual screen by the X server
(or by a separate composite manager) as directed by the window manager,
which usually communicates with the user via graphical controls such as buttons
and draggable titlebars and borders.

For a comprehensive overview of X Server and X Window System, consult the
following article:
http://en.wikipedia.org/wiki/X_server

All questions regarding this software should be directed at the
Xorg mailing list:

        http://lists.freedesktop.org/mailman/listinfo/xorg

Please submit bug reports to the Xorg bugzilla:

        https://bugs.freedesktop.org/enter_bug.cgi?product=xorg

The master development code repository can be found at:

        git://anongit.freedesktop.org/git/xorg/xserver

        http://cgit.freedesktop.org/xorg/xserver

For patch submission instructions, see:

	http://www.x.org/wiki/Development/Documentation/SubmittingPatches

For more information on the git code manager, see:

        http://wiki.x.org/wiki/GitPage