[PATCH xserver] ephyr: Leave window unmapped for -glamor-skip-present

Julien Cristau jcristau at debian.org
Wed Oct 5 20:21:04 UTC 2016


On Wed, Oct  5, 2016 at 09:42:19 -0700, Keith Packard wrote:

> If we're never painting anything in the window, we probably don't need
> to map it.
> 
> Signed-off-by: Keith Packard <keithp at keithp.com>
> ---
>  hw/kdrive/ephyr/hostx.c | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
> 
> diff --git a/hw/kdrive/ephyr/hostx.c b/hw/kdrive/ephyr/hostx.c
> index 887f654..f49ed02 100644
> --- a/hw/kdrive/ephyr/hostx.c
> +++ b/hw/kdrive/ephyr/hostx.c
> @@ -95,6 +95,7 @@ char *ephyrResName = NULL;
>  int ephyrResNameFromCmd = 0;
>  char *ephyrTitle = NULL;
>  Bool ephyr_glamor = FALSE;
> +extern Bool ephyr_glamor_gles2, ephyr_glamor_skip_present;
>  
>  Bool
>  hostx_has_extension(xcb_extension_t *extension)

The extern ephyr_glamor_skip_present declaration should probably live in
ephyr_glamor_glx.h so mismatches between it and ephyr_glamor_glx.c are
caught.

Cheers,
Julien


More information about the xorg-devel mailing list