Sway: Wallpaper background borked

Created on 11 Jul 2020  路  11Comments  路  Source: swaywm/sway

bug

All 11 comments

Your bug report is missing debug logs. Please add a link to the full debug log file.

Err, I see it's up now. My bad,

Hmm, nothing useful in the debug log it seems. It appears that swaybg is spawned correctly and creates a layer-shell surface.

Well my background is now grey instead of the jpg chosen.

Are you experiencing issues with anything other than swaybg on the output?

Can you please do the following:

  1. Comment out the output * bg ~/Downloads/wallpaper.jpg fill line in your config
  2. Start sway
  3. Run the following from a terminal:
env WAYLAND_DEBUG=1 swaybg -o "*" -i ~/Downloads/wallpaper.jpg -m fill 2> swaybg.log
  1. After a couple seconds, use Control+C to terminate swaybg.
  2. Post the log

I'm going to play around with the "max_render_time" setting and see if it works properly. Here's the log.

swaybg.log

It seems like Sway never sends a configure event for the layer surface.

@emersion
Awesome, I鈥檓 glad that log caught something. The wallpaper was working great a couple of commits ago.

I've just seen this in my test VM, and I believe I know what's going on.
I have sway 1.5rc2 built against https://github.com/swaywm/wlroots/commit/a54ed8588177a679a131c621c0d300c6a9d910c5, but the installed wlroots package was at https://github.com/swaywm/wlroots/commit/842df2bd6c940c5f4933622987fc9a296f404d67. Rebuilding sway against updated wlroots fixed the issue so I suspect ABI changes in 'layer-shell: remove unused surface list'.

@shoober420 is there any chance that you've updated wlroots without rebuilding sway? Does rebuilding sway fix the issue?

I keep sway, wlroots, and swaybg up to date consistently. I just compiled sway and wlroots right now, and the bug is still present.

Fixed, thank you very much.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Alphare picture Alphare  路  3Comments

soymjolk picture soymjolk  路  3Comments

aidanharris picture aidanharris  路  3Comments

ddevault picture ddevault  路  3Comments

Olie440 picture Olie440  路  4Comments