ui: fix disabled monitor positioning

parent af10643e
......@@ -38,7 +38,7 @@ namespace TunerDisplays {
can_focus = true
};
enabled_switch.notify["active"].connect(() => {
if (enabled_switch.active != monitor.enabled && backend_id != "niri")
if (enabled_switch.active != monitor.enabled && backend_id == "gnome")
place_monitor_after_active(monitor, all_monitors);
monitor.enabled = enabled_switch.active;
monitor_changed();
......
......@@ -32,7 +32,7 @@ namespace TunerDisplays {
enabled_row.visible = show_enabled;
enabled_row.active = monitor.enabled;
enabled_row.notify["active"].connect(() => {
if (enabled_row.active != monitor.enabled && backend_id != "niri")
if (enabled_row.active != monitor.enabled && backend_id == "gnome")
place_monitor_after_active(monitor, all_monitors);
monitor.enabled = enabled_row.active;
emit_changed();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment