diff options
author | Jeremy Huddleston <jeremyhu@apple.com> | 2010-08-19 19:49:39 -0700 |
---|---|---|
committer | Jeremy Huddleston <jeremyhu@apple.com> | 2010-08-19 19:49:39 -0700 |
commit | e03b08f4f236065f4bbda7acf76a794402b8c385 (patch) | |
tree | d6b85d19c6017f6a0573a471802ff0bea291309e | |
parent | d5f64eb1d9f2d74a7c1bab77e4c594f882e39bd2 (diff) |
XQuartz: UpdateScreen at the end of SetRootless
This will ensure that pRoot is unlocked after the miPaintWindow
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
(cherry picked from commit ee7fd8fc58d9fadfbb92302ddea224537f068538)
Conflicts:
hw/xquartz/quartz.c
-rw-r--r-- | hw/xquartz/quartz.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/hw/xquartz/quartz.c b/hw/xquartz/quartz.c index aceb8058b..0726465af 100644 --- a/hw/xquartz/quartz.c +++ b/hw/xquartz/quartz.c @@ -274,7 +274,6 @@ static void QuartzUpdateScreens(void) { pScreen->height = height; DarwinAdjustScreenOrigins(&screenInfo); - quartzProcs->UpdateScreen(pScreen); /* DarwinAdjustScreenOrigins or UpdateScreen may change dixScreenOrigins, * so use it rather than x/y @@ -286,7 +285,7 @@ static void QuartzUpdateScreens(void) { pRoot = WindowTable[pScreen->myNum]; AppleWMSetScreenOrigin(pRoot); pScreen->ResizeWindow(pRoot, x - sx, y - sy, width, height, NULL); - //pScreen->PaintWindowBackground (pRoot, &pRoot->borderClip, PW_BACKGROUND); + miPaintWindow(pRoot, &pRoot->borderClip, PW_BACKGROUND); DefineInitialRootWindow(pRoot); @@ -303,6 +302,8 @@ static 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); |