Bugfix: Fix bug with screen offset detection in fullscreen (#573)

This commit is contained in:
Ezro
2022-02-21 01:18:04 -05:00
committed by GitHub
parent 69d546f5ee
commit 59d0795153
+1 -1
View File
@@ -42,7 +42,7 @@ def convert_abs_to_monitor(abs_coord: Tuple[float, float]) -> Tuple[float, float
def set_window_position(offset_x: int, offset_y: int):
global monitor_roi, monitor_x_range, monitor_y_range, found_offsets
if monitor_roi["top"] == offset_y and monitor_roi["left"] == offset_x:
if found_offsets and monitor_roi["top"] == offset_y and monitor_roi["left"] == offset_x:
return
Logger.debug(f"Set offsets: left {offset_x}px, top {offset_y}px")
monitor_roi["top"] = offset_y