Fix values for Y snap points

This commit is contained in:
Roberto Alsina 2022-06-08 13:22:26 -03:00
parent 05bf2b963e
commit 0fef2428b4
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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):