Close desktop safety gaps

This commit is contained in:
Gabriel Brown
2026-08-20 22:00:26 -04:00
parent c4733e0624
commit c4642919f7
13 changed files with 194 additions and 35 deletions
@@ -68,6 +68,15 @@ done
[[ "$(qs_for_harness ipc call wallpaper-settings-test activate per-monitor /images/c.jpg)" \
== '["assign:DP-2:/images/c.jpg"]' ]] || fail 'Per-display mode did not assign the selected output'
qs_for_harness ipc call wallpaper-settings-test selectOutput HDMI-A-1 >/dev/null
qs_for_harness ipc call wallpaper-settings-test updateOutputs 'DP-2|HDMI-A-1' >/dev/null
[[ "$(qs_for_harness ipc call wallpaper-settings-test selectedOutput)" == 'HDMI-A-1' ]] \
|| fail 'a valid per-monitor selection was reset during topology reconciliation'
qs_for_harness ipc call wallpaper-settings-test updateOutputs 'DP-2' >/dev/null
selected_after_disconnect="$(qs_for_harness ipc call wallpaper-settings-test selectedOutput)"
[[ "$selected_after_disconnect" == 'DP-2' ]] \
|| fail "a disconnected per-monitor selection did not fall back to the primary output: $selected_after_disconnect"
states="$(qs_for_harness ipc call wallpaper-settings-test states)"
jq -e '.selectedOutput == "DP-2"
and .single == {"current":true,"selected":true}