From 0bb8a2566debd6cd11164df9ddca534150ec440a Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Tue, 13 Mar 2012 00:15:55 -0700 Subject: [PATCH] XQuartz: Add a defaults option to disable the RENDER extension RENDER has some ugly issues on XQuartz, so add an option to disable RENDER. Enables workaround for: https://bugs.freedesktop.org/show_bug.cgi?id=26124 Signed-off-by: Jeremy Huddleston --- hw/xquartz/X11Application.h | 1 + hw/xquartz/X11Application.m | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/hw/xquartz/X11Application.h b/hw/xquartz/X11Application.h index bdbe6ac1f..56806867e 100644 --- a/hw/xquartz/X11Application.h +++ b/hw/xquartz/X11Application.h @@ -126,6 +126,7 @@ X11ApplicationMain(int argc, char **argv, char **envp); #define PREFS_APPKIT_MODIFIERS "appkit_modifiers" #define PREFS_WINDOW_ITEM_MODIFIERS "window_item_modifiers" #define PREFS_ROOTLESS "rootless" +#define PREFS_RENDER_EXTENSION "enable_render_extension" #define PREFS_TEST_EXTENSIONS "enable_test_extensions" #define PREFS_XP_OPTIONS "xp_options" #define PREFS_LOGIN_SHELL "login_shell" diff --git a/hw/xquartz/X11Application.m b/hw/xquartz/X11Application.m index e091fbb3d..e1d35abbf 100644 --- a/hw/xquartz/X11Application.m +++ b/hw/xquartz/X11Application.m @@ -69,6 +69,7 @@ static dispatch_queue_t eventTranslationQueue; #endif extern Bool noTestExtensions; +extern Bool noRenderExtension; #if MAC_OS_X_VERSION_MIN_REQUIRED >= 1050 static TISInputSourceRef last_key_layout; @@ -889,6 +890,9 @@ darwinDesiredDepth]; noTestExtensions = ![self prefs_get_boolean: @PREFS_TEST_EXTENSIONS default: FALSE]; +noRenderExtension = ![self prefs_get_boolean: @PREFS_RENDER_EXTENSION default: +TRUE]; + XQuartzScrollInDeviceDirection =[self prefs_get_boolean: @PREFS_SCROLL_IN_DEV_DIRECTION default: XQuartzScrollInDeviceDirection];