mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-24 19:30:05 +01:00
DIX: Set backgroundState correctly for root window
When we change the root window's background to None, and we've run with
-wr or -br for a forced solid background, make sure we also change the
background state to BackgroundPixel, so we don't try to lookup either
pScreen->whitePixel or pScreen->blackPixel as a pixmap.
Signed-off-by: Marko Macek <Marko.Macek@gmx.net>
Reviewed-by: Walter Harms <wharms@bfs.de>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
Signed-off-by: Keith Packard <keithp@keithp.com>
(cherry picked from commit c5b72fd350)
This commit is contained in:
parent
4bfb22e766
commit
5752cc4736
1 changed files with 2 additions and 0 deletions
|
|
@ -474,6 +474,7 @@ InitRootWindow(WindowPtr pWin)
|
|||
pWin->background.pixel = pScreen->whitePixel;
|
||||
backFlag |= CWBackPixmap;
|
||||
} else {
|
||||
pWin->backgroundState = BackgroundPixel;
|
||||
if (whiteRoot)
|
||||
pWin->background.pixel = pScreen->whitePixel;
|
||||
else
|
||||
|
|
@ -972,6 +973,7 @@ SetRootWindowBackground(WindowPtr pWin, ScreenPtr pScreen, Mask *index2)
|
|||
else if (party_like_its_1989)
|
||||
MakeRootTile(pWin);
|
||||
else {
|
||||
pWin->backgroundState = BackgroundPixel;
|
||||
if (whiteRoot)
|
||||
pWin->background.pixel = pScreen->whitePixel;
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue