From 107cb66c86c1b4f37fcc0ee26eecb4d00591759e Mon Sep 17 00:00:00 2001 From: Maciej W Date: Tue, 21 Apr 2026 22:52:24 +0100 Subject: [PATCH] pointerTracker: fix ny coordinate using nx in get_real_pointer_position 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. --- js/misc/pointerTracker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/misc/pointerTracker.js b/js/misc/pointerTracker.js index 9070feaf04..3db73eeb45 100644 --- a/js/misc/pointerTracker.js +++ b/js/misc/pointerTracker.js @@ -83,7 +83,7 @@ var PointerSwitcher = class { const monitor = Main.layoutManager.monitors[index]; let real_x = (nx * monitor.width) + monitor.x; - let real_y = (nx * monitor.height) + monitor.y; + let real_y = (ny * monitor.height) + monitor.y; return [real_x, real_y]; }