mirror of
https://github.com/ralsina/xrandroll.git
synced 2024-11-23 19:42:23 +00:00
Fix "make not-a-replica"
This commit is contained in:
parent
6c8ff840d0
commit
05bf2b963e
@ -127,12 +127,13 @@ class Window(QObject):
|
|||||||
def replica_changed(self):
|
def replica_changed(self):
|
||||||
mon_name = self.ui.screenCombo.currentText()
|
mon_name = self.ui.screenCombo.currentText()
|
||||||
replicate = self.ui.replicaOf.currentText()
|
replicate = self.ui.replicaOf.currentText()
|
||||||
print(f"Making {mon_name} a replica of {replicate}")
|
|
||||||
if replicate in ("None", "", None):
|
|
||||||
print("TODO: make things non-replicas")
|
|
||||||
return
|
|
||||||
mon = self.screen.monitors[mon_name]
|
mon = self.screen.monitors[mon_name]
|
||||||
|
if replicate in ("None", "", None):
|
||||||
|
print(f"Making {mon_name} NOT a replica")
|
||||||
|
mon.pos_x += 300
|
||||||
|
else:
|
||||||
replicate = self.screen.monitors[replicate]
|
replicate = self.screen.monitors[replicate]
|
||||||
|
print(f"Making {mon_name} a replica of {replicate}")
|
||||||
|
|
||||||
# Making a replica implies:
|
# Making a replica implies:
|
||||||
# Set the same position
|
# Set the same position
|
||||||
|
Loading…
Reference in New Issue
Block a user