Skip to content

RediWM is a Wayland compositor written in Zig (OpenGL ES) that includes everything in one process

release script update

oxydizerce5ebfd2e0a8
diff --git a/scripts/release-verify.sh b/scripts/release-verify.sh
index 15494cd..7db729e 100644
--- a/scripts/release-verify.sh
+++ b/scripts/release-verify.sh
@@ -65,7 +65,7 @@ chown tester "$xdg"
chmod 700 "$xdg"
log_file=/tmp/rediwm-verify.log
runuser -u tester -- env HOME=/home/tester XDG_RUNTIME_DIR="$xdg" XDG_STATE_HOME="$xdg/state" \
- WLR_BACKENDS=headless WLR_HEADLESS_OUTPUTS=1 WLR_RENDERER=pixman REDIWM_SCALE=1 \
+ WLR_BACKENDS=headless WLR_HEADLESS_OUTPUTS=1 WLR_RENDERER=gles2 WLR_RENDERER_ALLOW_SOFTWARE=1 REDIWM_SCALE=1 \
/usr/local/bin/rediwm > "$log_file" 2>&1 &
pid=$!
up=no
diff --git a/src/icon_theme.zig b/src/icon_theme.zig
index 273f175..d12757e 100644
--- a/src/icon_theme.zig
+++ b/src/icon_theme.zig
@@ -138,8 +138,16 @@ pub fn find(allocator: Allocator, io: Io, cfg: Config, icon_name: []const u8, ta
var found_hicolor = false;
+ // A configured theme that lacks an icon (a cursor-only "default" index,
+ // say) falls back to the built-in default theme and its parents.
+ var queued_default = false;
var head: usize = 0;
- while (head < pending.items.len) : (head += 1) {
+ while (true) : (head += 1) {
+ if (head == pending.items.len) {
+ if (queued_default) break;
+ queued_default = true;
+ try pending.append(allocator, default_theme);
+ }
const theme_name = pending.items[head];
var already = false;