From 879074c28e14687e658608785fb5e07387f0878b Mon Sep 17 00:00:00 2001 From: GrylledCheez <68041324+GrylledCheez@users.noreply.github.com> Date: Wed, 6 Sep 2023 09:29:35 -1000 Subject: [PATCH] fix move to left monitor Columns weren't being recalculated when moving to a monitor on the left. --- extension.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extension.js b/extension.js index 37037a9..8c181ad 100644 --- a/extension.js +++ b/extension.js @@ -458,8 +458,9 @@ function sendMove(direction, ctrlPressed = false) { } else if (monitorToLeft !== -1) { // There is a monitor to the left, so let's go there _log('sendMove) left - yes monitor'); + let newMonitor = getMonitorInfo(monitorToLeft); app.move_to_monitor(monitorToLeft); - moveApp(app, {'row': app.wintile.row, 'col': colCount - 1, 'height': app.wintile.height, 'width': 1}); + moveApp(app, {'row': app.wintile.row, 'col': newMonitor.colCount - 1, 'height': app.wintile.height, 'width': 1}); } else { // We are already on the left, and there is no other monitor to the left // Move to the left most column at full height