diff --git a/TODO.md b/TODO.md index 5e88e21..e62504c 100644 --- a/TODO.md +++ b/TODO.md @@ -1,3 +1,4 @@ * Parse refresh rate for modes and use it [DONE] * Test using older xrandr * Fix snapping (only works for one of the monitors?) +* Normalize positions so they always start from 0:0 diff --git a/xrandroll/main.py b/xrandroll/main.py index d7d5dd0..db4558e 100644 --- a/xrandroll/main.py +++ b/xrandroll/main.py @@ -253,8 +253,9 @@ class Window(QObject): mod_x, mod_y = mode.res_x, mode.res_y snaps_x.append(monitor.pos_x) snaps_x.append(monitor.pos_x + mod_x) - snaps_y.append(monitor.pos_x) - snaps_y.append(monitor.pos_x + mod_y) + snaps_y.append(monitor.pos_y) + snaps_y.append(monitor.pos_y + mod_y) + print(snaps_x, snaps_y) return snaps_x, snaps_y def adjust_view(self):