Compton: Compton incompatible with xsetroot

Created on 23 Dec 2013  ·  3Comments  ·  Source: chjj/compton

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!

image

Most helpful comment

Never mind. I switched to hsetroot -solid "#FFFFFF" which preserves my background settings even with Compton.

All 3 comments

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!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  ·  10Comments

ljrk0 picture ljrk0  ·  8Comments

aliveinadream picture aliveinadream  ·  12Comments

ghost picture ghost  ·  14Comments

Brett99 picture Brett99  ·  12Comments