1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-04-04 12:52:06 -04:00

display: support generic wlr-output-management-unstable-v1 (#1840)

The display config UI only applied changes for compositors with a
config-file backend (niri, hyprland, dwl).  For any other compositor
that supports wlr-output-management-unstable-v1 the "Apply Changes"
button was silently a no-op.

Add WlrOutputService.applyOutputsConfig() as a high-level apply that
mirrors the generateOutputsConfig() pattern of the existing services
but applies directly via the protocol instead of writing a config file.
Route the default case in backendWriteOutputsConfig() to it.

This enables using dms-shell as a wayland compositor for emacs wayland
manager (ewm).
This commit is contained in:
Evgeny Zemtsov
2026-03-11 18:28:14 +01:00
committed by GitHub
parent 25dce2961b
commit bddc2f6295
2 changed files with 190 additions and 116 deletions

View File

@@ -909,6 +909,9 @@ Singleton {
case "dwl":
DwlService.generateOutputsConfig(outputsData);
break;
default:
WlrOutputService.applyOutputsConfig(outputsData, outputs);
break;
}
}