Commit a2b2c271 authored by Adam Jackson's avatar Adam Jackson

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: default avatarKeith Packard <>
Signed-off-by: default avatarAdam Jackson <>
parent e0cac005
......@@ -355,6 +355,9 @@ compScreenInit(ScreenPtr pScreen)
return FALSE;
if (!disableBackingStore)
pScreen->backingStoreSupport = WhenMapped;
cs->PositionWindow = pScreen->PositionWindow;
pScreen->PositionWindow = compPositionWindow;
......@@ -1638,6 +1638,11 @@ xf86SetBackingStore(ScreenPtr pScreen)
else {
if (xf86GetOptValBool(options, OPTION_BACKING_STORE, &useBS))
from = X_CONFIG;
if (from != X_CONFIG)
useBS = xf86ReturnOptValBool(options, OPTION_BACKING_STORE,
pScreen->backingStoreSupport = useBS ? WhenMapped : NotUseful;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment