mirror of
https://github.com/ralsina/xrandroll.git
synced 2025-08-02 05:53:36 +00:00
Fix "make not-a-replica"
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user