This call is required for external drivers (specifically NVIDIA) that do
not share the xfree86 infrastructure to update the desktop dimensions.
Without it, the driver would update the ScreenRecs but not update the total
dimensions the input code relies on for transformation.
This call is a thin wrapper around the already-existing internal call and
should be backported to all stable series servers, with the minor ABI bump.
Signed-off-by: Peter Hutterer <email address hidden>
CC: Andy Ritger <email address hidden>
Reviewed-by: Aaron Plattner <email address hidden>
(cherry picked from commit 0a75bd640b3dc26b89d9e342999a7f4b7e98edbf)
list: Use offsetof() and typeof() to determine member offsets within a structure
Some compilers have difficulty with the previous implementation which
relies on undefined behavior according to the C standard. Using
offsetof() from <stddef.h> (which most likely just uses
__builtin_offsetof on modern compilers) allows us to accomplish this
without ambiguity.
This fix also requires support for typeof(). If your compiler does not
support typeof(), then the old implementation will be used. If you see
failures in test/list, please try a more modern compiler.
v2: Added fallback if typeof() is not present.
Signed-off-by: Jeremy Huddleston Sequoia <email address hidden>
Reviewed-by: Peter Hutterer <email address hidden>
(cherry picked from commit b8ab93dfbc7f292b5bfe7e9113e1af824ccbd1a8)
XQuartz: console_redirect: Set the correct location for reading into the buffer
Prior to this change, it was possible that a large message would have some
of its data prepended to subsequent messages due to our not incorrectly
setting the location to write into the buffer.
Signed-off-by: Jeremy Huddleston Sequoia <email address hidden>
(cherry picked from commit a32e01802ff1c938c0afe0cc007a273b9ada8610)
Only free Render filter names on last screen close
Hotplugging screens causes the render filter names to get freed while
still in use; wait for the last core screen to be closed before
freeing them. That only happens at server reset, when we want them to
be freed.
Signed-off-by: Keith Packard <email address hidden>
Reviewed-by: Dave Airlie <email address hidden>
(cherry picked from commit 19772670e3041fe1c7f5bbf32fa039a6d8245ccb)