forge
Explore
Log in

Don't you dare go Hollow

dbus: DisplayConfig: add properties required by display settings panel

Browse files at this commit

d52356b131dd50b9cee7491ecef304fc6e0ddedfVal PackettParent: b11b995
src/dbus/mutter_display_config.rsmodified+25 -0
@@ -159,6 +159,31 @@ impl DisplayConfig {
159 159
160 #[zbus(signal)]160 #[zbus(signal)]
161 pub async fn monitors_changed(ctxt: &SignalEmitter<'_>) -> zbus::Result<()>;161 pub async fn monitors_changed(ctxt: &SignalEmitter<'_>) -> zbus::Result<()>;
162+
163+ #[zbus(property)]
164+ fn power_save_mode(&self) -> i32 {
165+ -1
166+ }
167+
168+ #[zbus(property)]
169+ fn set_power_save_mode(&self, _mode: i32) -> zbus::Result<()> {
170+ Err(zbus::Error::Unsupported)
171+ }
172+
173+ #[zbus(property)]
174+ fn panel_orientation_managed(&self) -> bool {
175+ false
176+ }
177+
178+ #[zbus(property)]
179+ fn apply_monitors_config_allowed(&self) -> bool {
180+ true
181+ }
182+
183+ #[zbus(property)]
184+ fn night_light_supported(&self) -> bool {
185+ false
186+ }
162 }187 }
163 188
164 impl DisplayConfig {189 impl DisplayConfig {