[PATCH 1/3] bs: Set the screen's bs support level to WhenMapped not Always

Jasper St. Pierre jstpierre at mecheye.net
Thu Sep 12 10:10:28 PDT 2013


For the series:

Reviewed-by: Jasper St. Pierre <jstpierre at mecheye.net>


On Thu, Sep 12, 2013 at 12:04 PM, Adam Jackson <ajax at redhat.com> wrote:

> Since we're using RedirectAutomatic to do this, we don't actually
> preserve contents when unmapped.
>
> Signed-off-by: Adam Jackson <ajax at redhat.com>
> ---
>  dix/window.c                   | 2 +-
>  hw/xfree86/common/xf86Helper.c | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/dix/window.c b/dix/window.c
> index 9fa51c2..1bd7d8b 100644
> --- a/dix/window.c
> +++ b/dix/window.c
> @@ -530,7 +530,7 @@ CreateRootWindow(ScreenPtr pScreen)
>      if (disableBackingStore)
>          pScreen->backingStoreSupport = NotUseful;
>      if (enableBackingStore)
> -        pScreen->backingStoreSupport = Always;
> +        pScreen->backingStoreSupport = WhenMapped;
>
>      pScreen->saveUnderSupport = NotUseful;
>
> diff --git a/hw/xfree86/common/xf86Helper.c
> b/hw/xfree86/common/xf86Helper.c
> index 721159d..4f1f3d4 100644
> --- a/hw/xfree86/common/xf86Helper.c
> +++ b/hw/xfree86/common/xf86Helper.c
> @@ -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");
> --
> 1.8.3.1
>
> _______________________________________________
> xorg-devel at lists.x.org: X.Org development
> Archives: http://lists.x.org/archives/xorg-devel
> Info: http://lists.x.org/mailman/listinfo/xorg-devel
>



-- 
  Jasper
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x.org/archives/xorg-devel/attachments/20130912/b9cdcc79/attachment.html>


More information about the xorg-devel mailing list