mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
bs: Set the screen's bs support level to WhenMapped
Since we're using RedirectAutomatic to do this, we don't actually preserve contents when unmapped. v2: Don't say WhenMapped if Composite didn't initialize [vsyrjala] Reviewed-by: Julien Cristau <jcristau@debian.org> Signed-off-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
@@ -530,7 +530,11 @@ CreateRootWindow(ScreenPtr pScreen)
|
||||
if (disableBackingStore)
|
||||
pScreen->backingStoreSupport = NotUseful;
|
||||
if (enableBackingStore)
|
||||
pScreen->backingStoreSupport = Always;
|
||||
pScreen->backingStoreSupport = WhenMapped;
|
||||
#ifdef COMPOSITE
|
||||
if (noCompositeExtension)
|
||||
pScreen->backingStoreSupport = NotUseful;
|
||||
#endif
|
||||
|
||||
pScreen->saveUnderSupport = NotUseful;
|
||||
|
||||
|
||||
@@ -1640,7 +1640,7 @@ xf86SetBackingStore(ScreenPtr pScreen)
|
||||
from = X_CONFIG;
|
||||
}
|
||||
free(options);
|
||||
pScreen->backingStoreSupport = useBS ? Always : NotUseful;
|
||||
pScreen->backingStoreSupport = useBS ? WhenMapped : NotUseful;
|
||||
if (serverGeneration == 1)
|
||||
xf86DrvMsg(pScreen->myNum, from, "Backing store %s\n",
|
||||
useBS ? "enabled" : "disabled");
|
||||
|
||||
Reference in New Issue
Block a user