From: Adam Jackson Date: Tue, 5 Nov 2013 15:08:17 +0000 (-0500) Subject: composite: Automatically enable backing store support on the screen X-Git-Tag: xorg-server-1.14.99.904~21 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a2b2c271e0ca87d3188ba2741b6db9bbbdc599f5;p=platform%2Fupstream%2Fxorg-server.git composite: Automatically enable backing store support on the screen ... unless you explicitly disabled it with -bs on the command line, or with the corresponding thing in xorg.conf. v2: Drop a bogus hunk from compChangeWindowAttributes [vsyrjala] v3: s/TRUE/WhenMapped/ [jcristau] Reviewed-by: Keith Packard Signed-off-by: Adam Jackson --- diff --git a/composite/compinit.c b/composite/compinit.c index bc1130e..6431464 100644 --- a/composite/compinit.c +++ b/composite/compinit.c @@ -355,6 +355,9 @@ compScreenInit(ScreenPtr pScreen) return FALSE; } + if (!disableBackingStore) + pScreen->backingStoreSupport = WhenMapped; + cs->PositionWindow = pScreen->PositionWindow; pScreen->PositionWindow = compPositionWindow; diff --git a/hw/xfree86/common/xf86Helper.c b/hw/xfree86/common/xf86Helper.c index 4f1f3d4..f1e6783 100644 --- a/hw/xfree86/common/xf86Helper.c +++ b/hw/xfree86/common/xf86Helper.c @@ -1638,6 +1638,11 @@ xf86SetBackingStore(ScreenPtr pScreen) else { if (xf86GetOptValBool(options, OPTION_BACKING_STORE, &useBS)) from = X_CONFIG; +#ifdef COMPOSITE + if (from != X_CONFIG) + useBS = xf86ReturnOptValBool(options, OPTION_BACKING_STORE, + !noCompositeExtension); +#endif } free(options); pScreen->backingStoreSupport = useBS ? WhenMapped : NotUseful;