summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2016-10-05 09:41:44 -0700
committerKeith Packard <keithp@keithp.com>2016-10-28 08:41:28 -0700
commit2c91f3235a4e1655e18cb014922529161051ffbb (patch)
treeb5000b368a7f39f9570bed42e7f24636250eb6a6
parentcba5a10fd93310702cad9dbe1e6d48da99f5552f (diff)
ephyr: Leave window unmapped for -glamor-skip-present [v2]
If we're never painting anything in the window, we probably don't need to map it. v2: Drop ephyr_glamor_gles2 from hostx.c Signed-off-by: Keith Packard <keithp@keithp.com> Reviewed-by: Eric Anholt <eric@anholt.net>
-rw-r--r--hw/kdrive/ephyr/hostx.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/hw/kdrive/ephyr/hostx.c b/hw/kdrive/ephyr/hostx.c
index 887f6544c..fe69f84ae 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_skip_present;
Bool
hostx_has_extension(xcb_extension_t *extension)
@@ -898,7 +899,10 @@ hostx_screen_init(KdScreenInfo *screen,
&size_hints);
}
- xcb_map_window(HostX.conn, scrpriv->win);
+#ifdef GLAMOR
+ if (!ephyr_glamor_skip_present)
+#endif
+ xcb_map_window(HostX.conn, scrpriv->win);
/* Set explicit window position if it was informed in
* -screen option (WxH+X or WxH+X+Y). Otherwise, accept the