Skip to content

Commit

Permalink
fix move to left monitor
Browse files Browse the repository at this point in the history
Columns weren't being recalculated when moving to a monitor on the left.
  • Loading branch information
GrylledCheez committed Sep 6, 2023
1 parent d33631a commit 879074c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 879074c

Please sign in to comment.