From 52d84bec913496291199511a15ec848a6fe90a9a Mon Sep 17 00:00:00 2001 From: Roberto Alsina Date: Tue, 4 Feb 2020 13:49:54 -0300 Subject: [PATCH] Update replica_of data when enabling a monitor --- xrandroll/main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xrandroll/main.py b/xrandroll/main.py index 0b4c7fc..1ce9394 100644 --- a/xrandroll/main.py +++ b/xrandroll/main.py @@ -121,7 +121,10 @@ class Window(QObject): # Choose a mode self.ui.modes.setCurrentIndex(0) self.mode_changed() - monitor["item"].update_visuals(monitor) + self.update_replica_of_data() + for _, mon in self.xrandr_info.items(): + mon["item"].update_visuals(mon) + self.adjust_view() def primary_changed(self): mon = self.ui.screenCombo.currentText()