Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Mar 2020 10:49:34 +0000
From:      bugzilla-noreply@freebsd.org
To:        x11@FreeBSD.org
Subject:   [Bug 227967] [usability] x11-servers/xorg-server ships with black background which makes debugging X hard
Message-ID:  <bug-227967-7141-iL1LZrYjWV@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-227967-7141@https.bugs.freebsd.org/bugzilla/>
References:  <bug-227967-7141@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227967

--- Comment #7 from Alexey Dokuchaev <danfe@FreeBSD.org> ---
(In reply to Chris Rees from comment #6)
> Hm, I'm not sure that 'black' is chosen as a 'wallpaper'...
> Unless you've found the code that chooses black?
I guess you're right, it's not that simple.  Basically, the logic goes like
this:

>  if (party_like_its_1989) { // -retro
>      MakeRootTile(pWin);
>      backFlag |=3D CWBackPixmap;
>  }
>  else {
>      pWin->backgroundState =3D BackgroundPixel;
>      if (whiteRoot) // -wr
>          pWin->background.pixel =3D pScreen->whitePixel;
>      else
>          pWin->background.pixel =3D pScreen->blackPixel;
>      backFlag |=3D CWBackPixel;
>  }
So it's special "blackPixel" colormap entry, not simply "solid black".  I g=
uess
we're better off properly documenting how users can select 1989-style (-ret=
ro)
or solid white (-wr) backgrounds.

Another option would be to look into how OpenBSD patches it, but I don't fe=
el
motivated enough.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-227967-7141-iL1LZrYjWV>