mirror of
https://github.com/ralsina/xrandroll.git
synced 2024-11-21 18:42:22 +00:00
Block primary signal when switching monitors
This commit is contained in:
parent
5d54b0afd8
commit
a13c3436ef
@ -273,6 +273,7 @@ class Window(QObject):
|
|||||||
return
|
return
|
||||||
# needed so we don't flip through all modes as they are added
|
# needed so we don't flip through all modes as they are added
|
||||||
self.ui.modes.blockSignals(True)
|
self.ui.modes.blockSignals(True)
|
||||||
|
self.ui.primary.blockSignals(True)
|
||||||
# Show modes
|
# Show modes
|
||||||
self.ui.modes.clear()
|
self.ui.modes.clear()
|
||||||
monitor = self.screen.monitors[name]
|
monitor = self.screen.monitors[name]
|
||||||
@ -302,6 +303,7 @@ class Window(QObject):
|
|||||||
if mon in self.screen.monitors[name].replica_of:
|
if mon in self.screen.monitors[name].replica_of:
|
||||||
self.ui.replicaOf.setCurrentText(mon)
|
self.ui.replicaOf.setCurrentText(mon)
|
||||||
self.ui.modes.blockSignals(False)
|
self.ui.modes.blockSignals(False)
|
||||||
|
self.ui.primary.blockSignals(False)
|
||||||
|
|
||||||
guessed_scale_mode = monitor.guess_scale_mode()
|
guessed_scale_mode = monitor.guess_scale_mode()
|
||||||
self.ui.scaleModeCombo.setCurrentText(guessed_scale_mode)
|
self.ui.scaleModeCombo.setCurrentText(guessed_scale_mode)
|
||||||
|
Loading…
Reference in New Issue
Block a user