Skip to content

Commit e6fd59b

Browse files
authored
pointerTracker: fix ny coordinate using nx in get_real_pointer_position (#13723)
In get_real_pointer_position, real_y was calculated using nx instead of ny, causing the cursor to land at the wrong Y position when using the pointer-next/previous-monitor keyboard shortcuts.
1 parent 2692b37 commit e6fd59b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

js/misc/pointerTracker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ var PointerSwitcher = class {
8383
const monitor = Main.layoutManager.monitors[index];
8484

8585
let real_x = (nx * monitor.width) + monitor.x;
86-
let real_y = (nx * monitor.height) + monitor.y;
86+
let real_y = (ny * monitor.height) + monitor.y;
8787

8888
return [real_x, real_y];
8989
}

0 commit comments

Comments
 (0)