bgs icon indicating copy to clipboard operation
bgs copied to clipboard

bgs will not set background if compton is running

Open mitchweaver opened this issue 6 years ago • 3 comments

unknown if this is just the case with compton or with all compositing managers, but one cannot set the background if compton is running. If a background had been set, when launching compton it will become compton's grey background.

edit: When launching bgs while compton is running, compton spits out this bit of information:

[    10.16 ] error    9 BadDrawable  request   14 minor    0 serial   3049: "BadDrawable (invalid Pixmap or Window parameter)"
glx_bind_pixmap(0x00e0027a): Failed to query Pixmap info.
win_paint_win(0x01000003): Failed to bind texture. Expect troubles.
win_paint_win(0x01000003): Missing painting data. This is a bad sign.
[    10.17 ] error    9 BadDrawable  request   14 minor    0 serial   3063: "BadDrawable (invalid Pixmap or Window parameter)"
[    10.17 ] error    4 BadPixmap    request   54 minor    0 serial   3064: "BadPixmap (invalid Pixmap parameter)"
[    10.18 ] error    9 BadDrawable  request   14 minor    0 serial   3141: "BadDrawable (invalid Pixmap or Window parameter)"
glx_bind_pixmap(0x00e00295): Failed to query Pixmap info.
win_paint_win(0x01200005): Failed to bind texture. Expect troubles.
win_paint_win(0x01200005): Missing painting data. This is a bad sign.
[    10.18 ] error    9 BadDrawable  request   14 minor    0 serial   3151: "BadDrawable (invalid Pixmap or Window parameter)"
[    10.19 ] error    4 BadPixmap    request   54 minor    0 serial   3152: "BadPixmap (invalid Pixmap parameter)"

mitchweaver avatar Nov 07 '17 14:11 mitchweaver

I can reproduce this with compton. By comparison, feh --bg-fill will work even if compton is running.

joshuarli avatar Dec 22 '17 05:12 joshuarli

AFAIK, Compton uses the pixmap that is referred to by the _XROOTPMAP_ID atom (And possibly ESETROOT_PMAP_ID as well?). You can see how feh sets these here:

https://github.com/derf/feh/blob/384a6069de80e0ad8980c2b6d403b32a3e10ee83/src/wallpaper.c#L561

pcewing avatar Apr 21 '18 07:04 pcewing

I can confirm that it doesn't work with picom (which is a fork of compon).

kdkasad avatar May 04 '20 00:05 kdkasad