Hi,
When I run compton with compton -bc
, then my white background disappears which I set with xsetroot -solid "#FFFFFF"
.
Is there any way how I can preserve my white background but at the same time being able to use compton?
Thanks!
Never mind. I switched to hsetroot -solid "#FFFFFF"
which preserves my background settings even with Compton.
As far as I know, xsetroot
uses XSetWindowBackground()
to set the root window color when you specify a solid color. I'm unsure about the way to determine the content of root window set this way after compositing is enabled. I once tried to read root window content directly (with/without --paint-on-overlay
) and it didn't work too well under current Xorg implementation. It might be possible cache it before the screen is redirected, but you probably won't be very interested in the result. conky uses XSetWindowBackgroundPixmap(dpy, parent, ParentRelative)
to take care of this, I believe, and I'm uncertain if we could support xsetroot using it. Anyway, overall it doesn't seem worthwhile to spend so much efforts on supporting xsetroot. Only those wallpaper setters providing the property _XROOTPMAP_ID
or _XSETROOT_ID
are supported.
Only those wallpaper setters providing the property _XROOTPMAP_ID or _XSETROOT_ID are supported.
That is a very fair reason. Thanks again for your explanation!
Most helpful comment
Never mind. I switched to
hsetroot -solid "#FFFFFF"
which preserves my background settings even with Compton.