From bbd4d1acb3e6a0e05aaa65845f0cec2a32637a49 Mon Sep 17 00:00:00 2001 From: Julien Cristau Date: Wed, 26 Mar 2014 21:24:54 +0100 Subject: [PATCH] Xephyr: Restore initial window resize lost in a2b73da --- hw/kdrive/ephyr/hostx.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hw/kdrive/ephyr/hostx.c b/hw/kdrive/ephyr/hostx.c index 3260d95..67bbc01 100644 --- a/hw/kdrive/ephyr/hostx.c +++ b/hw/kdrive/ephyr/hostx.c @@ -710,6 +710,12 @@ hostx_screen_init(KdScreenInfo *screen, malloc(scrpriv->ximg->stride * buffer_height); } + { + uint32_t mask = XCB_CONFIG_WINDOW_WIDTH | XCB_CONFIG_WINDOW_HEIGHT; + uint32_t values[2] = {width, height}; + xcb_configure_window(HostX.conn, scrpriv->win, mask, values); + } + if (scrpriv->win_pre_existing == None && !EphyrWantResize) { /* Ask the WM to keep our size static */ xcb_size_hints_t size_hints = {0}; -- 1.9.0