[PATCH 1/3] InitRootWindow: Use ChangeWindowAttributes instead of duplicating it.

2011-11-20 Thread Jamey Sharp
The protocol requires ChangeWindowAttributes to be able to set the root window's background and cursor to their defaults. So let's just use that when InitRootWindow needs to set up the defaults in the first place. This guarantees that using ChangeWindowAttributes to reset the root window really do

Re: [PATCH 1/3] InitRootWindow: Use ChangeWindowAttributes instead of duplicating it.

2011-11-20 Thread walter harms
Am 20.11.2011 12:48, schrieb Jamey Sharp: > The protocol requires ChangeWindowAttributes to be able to set the root > window's background and cursor to their defaults. So let's just use that > when InitRootWindow needs to set up the defaults in the first place. > > This guarantees that using Cha

Re: [PATCH 1/3] InitRootWindow: Use ChangeWindowAttributes instead of duplicating it.

2011-11-20 Thread Jamey Sharp
On 11/20/11, walter harms wrote: > Am 20.11.2011 12:48, schrieb Jamey Sharp: >> diff --git a/dix/window.c b/dix/window.c >> index 1953f02..44bfa18 100644 >> --- a/dix/window.c >> +++ b/dix/window.c >> @@ -551,38 +551,13 @@ void >> InitRootWindow(WindowPtr pWin) >> { >> ScreenPtr pScreen = p