[PATCH] Re: crash after setting root background pixmap to None, then setting color
Marko Macek
Marko.Macek at gmx.net
Sat May 21 10:13:04 PDT 2011
Please apply this patch:
Fix crash after resetting root window background pixmap to None, then setting background color.
Signed-off-by: Marko Macek <marko.macek at gmx.net>
diff -ru xorg-server-1.10.1/dix/window.c xorg-server-1.10.1-new/dix/window.c
--- xorg-server-1.10.1/dix/window.c 2011-02-25 04:27:25.000000000 +0100
+++ xorg-server-1.10.1-new/dix/window.c 2011-05-15 15:15:03.912919996 +0200
@@ -474,6 +474,7 @@
pWin->background.pixel = pScreen->whitePixel;
backFlag |= CWBackPixmap;
} else {
+ pWin->backgroundState = BackgroundPixel;
if (whiteRoot)
pWin->background.pixel = pScreen->whitePixel;
else
@@ -972,6 +973,7 @@
else if (party_like_its_1989)
MakeRootTile(pWin);
else {
+ pWin->backgroundState = BackgroundPixel;
if (whiteRoot)
pWin->background.pixel = pScreen->whitePixel;
else
Mark
More information about the xorg-devel
mailing list