From e52632c8f4e2921ad58c12fde5a7ca686c1b02fd Mon Sep 17 00:00:00 2001 From: Roberto Alsina Date: Tue, 4 Feb 2020 13:49:11 -0300 Subject: [PATCH] Update replica_of data when making a monitor a replica of another one. --- xrandroll/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xrandroll/main.py b/xrandroll/main.py index 55e0167..0b4c7fc 100644 --- a/xrandroll/main.py +++ b/xrandroll/main.py @@ -226,7 +226,9 @@ class Window(QObject): self.ui.horizontalScale.setValue(scale_x) self.ui.verticalScale.setValue(scale_y) - mon["item"].update_visuals(mon) + self.update_replica_of_data() + for _, mon in self.xrandr_info.items(): + mon["item"].update_visuals(mon) def do_reset(self): for n in self.xrandr_info: