mirror of
https://github.com/ralsina/xrandroll.git
synced 2025-07-13 04:39:43 +00:00
Fix "make not-a-replica"
This commit is contained in:
@ -127,12 +127,13 @@ class Window(QObject):
|
||||
def replica_changed(self):
|
||||
mon_name = self.ui.screenCombo.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]
|
||||
if replicate in ("None", "", None):
|
||||
print(f"Making {mon_name} NOT a replica")
|
||||
mon.pos_x += 300
|
||||
else:
|
||||
replicate = self.screen.monitors[replicate]
|
||||
print(f"Making {mon_name} a replica of {replicate}")
|
||||
|
||||
# Making a replica implies:
|
||||
# Set the same position
|
||||
|
Reference in New Issue
Block a user