From ee7fd8fc58d9fadfbb92302ddea224537f068538 Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Sun, 1 Aug 2010 11:39:14 -0700 Subject: [PATCH] XQuartz: UpdateScreen at the end of SetRootless This will ensure that pRoot is unlocked after the miPaintWindow Signed-off-by: Jeremy Huddleston --- hw/xquartz/quartz.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hw/xquartz/quartz.c b/hw/xquartz/quartz.c index bdaa26242..eee6151f7 100644 --- a/hw/xquartz/quartz.c +++ b/hw/xquartz/quartz.c @@ -265,7 +265,6 @@ void QuartzUpdateScreens(void) { pScreen->height = height; DarwinAdjustScreenOrigins(&screenInfo); - quartzProcs->UpdateScreen(pScreen); /* DarwinAdjustScreenOrigins or UpdateScreen may change pScreen->x/y, * so use it rather than x/y @@ -277,6 +276,7 @@ void QuartzUpdateScreens(void) { pRoot = pScreen->root; AppleWMSetScreenOrigin(pRoot); pScreen->ResizeWindow(pRoot, x - sx, y - sy, width, height, NULL); + miPaintWindow(pRoot, &pRoot->borderClip, PW_BACKGROUND); /* pointer events are clipped to old display region after display reconfiguration @@ -303,6 +303,8 @@ void QuartzUpdateScreens(void) { e.u.configureNotify.borderWidth = wBorderWidth(pRoot); e.u.configureNotify.override = pRoot->overrideRedirect; DeliverEvents(pRoot, &e, 1, NullWindow); + + quartzProcs->UpdateScreen(pScreen); #ifdef FAKE_RANDR RREditConnectionInfo(pScreen);