From a13c3436ef54576032474f594924b11e40cc92ed Mon Sep 17 00:00:00 2001 From: Roberto Alsina Date: Wed, 5 Feb 2020 21:07:09 -0300 Subject: [PATCH] Block primary signal when switching monitors --- xrandroll/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xrandroll/main.py b/xrandroll/main.py index 0e8996e..cf6be40 100644 --- a/xrandroll/main.py +++ b/xrandroll/main.py @@ -273,6 +273,7 @@ class Window(QObject): return # needed so we don't flip through all modes as they are added self.ui.modes.blockSignals(True) + self.ui.primary.blockSignals(True) # Show modes self.ui.modes.clear() monitor = self.screen.monitors[name] @@ -302,6 +303,7 @@ class Window(QObject): if mon in self.screen.monitors[name].replica_of: self.ui.replicaOf.setCurrentText(mon) self.ui.modes.blockSignals(False) + self.ui.primary.blockSignals(False) guessed_scale_mode = monitor.guess_scale_mode() self.ui.scaleModeCombo.setCurrentText(guessed_scale_mode)