Skip to content

Commit

Permalink
Fix expelling too far.
Browse files Browse the repository at this point in the history
  • Loading branch information
jtaala committed May 14, 2024
1 parent 8988570 commit 77d393b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ Swiping the trackpad horizontally with three fingers (only available in Wayland)
| <kbd>Super</kbd><kbd>Ctrl</kbd><kbd>Left</kbd> or <kbd>Super</kbd><kbd>Ctrl</kbd><kbd>Right</kbd> | Move the current window to the left or right |
| <kbd>Super</kbd><kbd>Ctrl</kbd><kbd>Up</kbd> or <kbd>Super</kbd><kbd>Ctrl</kbd><kbd>Down</kbd> | Move the current window up or down |
| <kbd>Super</kbd><kbd>I</kbd> | Absorb window into the active column |
| <kbd>Super</kbd><kbd>O</kbd> | Expel the bottom window from vertical stack |
| <kbd>Super</kbd><kbd>P</kbd> | Expel the active window from vertical stack |
| <kbd>Super</kbd><kbd>O</kbd> | Expel the bottom window from vertically tiled windows |
| <kbd>Super</kbd><kbd>P</kbd> | Expel the active window from vertically tiled windows |
| <kbd>Super</kbd><kbd>C</kbd> | Center windows horizontally |
| <kbd>Shift</kbd><kbd>Super</kbd><kbd>F</kbd> | Toggle fullscreen |
| <kbd>Super</kbd><kbd>F</kbd> | Maximize the width of a window |
Expand Down
4 changes: 2 additions & 2 deletions tiling.js
Original file line number Diff line number Diff line change
Expand Up @@ -4932,7 +4932,7 @@ export function barf(metaWindow, expelWindow) {
const direction = Settings.prefs.open_window_position;
switch (direction) {
case Settings.OpenWindowPositions.LEFT:
to = index - 1;
to = index; // if left then current index will increment
break;
case Settings.OpenWindowPositions.RIGHT:
default:
Expand All @@ -4943,7 +4943,7 @@ export function barf(metaWindow, expelWindow) {
// // remove metawindow from column
if (expelWindow) {
// remove expelWindow from current column
const indexOfWindow = column.indexOf(metaWindow);
const indexOfWindow = column.indexOf(expelWindow);
column.splice(indexOfWindow, 1);
}
else {
Expand Down

0 comments on commit 77d393b

Please sign in to comment.