From d52356b131dd50b9cee7491ecef304fc6e0ddedf Mon Sep 17 00:00:00 2001 From: Val Packett Date: Sat, 28 Sep 2024 04:06:56 -0300 Subject: dbus: DisplayConfig: add properties required by display settings panel --- src/dbus/mutter_display_config.rs | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'src') diff --git a/src/dbus/mutter_display_config.rs b/src/dbus/mutter_display_config.rs index e535e583..0a6ff052 100644 --- a/src/dbus/mutter_display_config.rs +++ b/src/dbus/mutter_display_config.rs @@ -159,6 +159,31 @@ impl DisplayConfig { #[zbus(signal)] pub async fn monitors_changed(ctxt: &SignalEmitter<'_>) -> zbus::Result<()>; + + #[zbus(property)] + fn power_save_mode(&self) -> i32 { + -1 + } + + #[zbus(property)] + fn set_power_save_mode(&self, _mode: i32) -> zbus::Result<()> { + Err(zbus::Error::Unsupported) + } + + #[zbus(property)] + fn panel_orientation_managed(&self) -> bool { + false + } + + #[zbus(property)] + fn apply_monitors_config_allowed(&self) -> bool { + true + } + + #[zbus(property)] + fn night_light_supported(&self) -> bool { + false + } } impl DisplayConfig { -- cgit