Skip to content

Commit

Permalink
resize parent instead, idk if that matters but whatever
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroxoneafour committed Apr 2, 2024
1 parent 12f8cb8 commit 695504f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/driver/driver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,10 +238,10 @@ export class TilingDriver {
// evaluate here if the tile is laid out vertically but needs to be expanded horizontally
if (parentIndex == 0) {
// first tile in sequence, shift border right
kwinTile.resizeByPixels(diff, Kwin.Edge.RightEdge);
kwinTile.parent.resizeByPixels(diff, Kwin.Edge.RightEdge);
} else {
// shift border left
kwinTile.resizeByPixels(-diff, Kwin.Edge.LeftEdge);
kwinTile.parent.resizeByPixels(-diff, Kwin.Edge.LeftEdge);
}
}
}
Expand All @@ -265,10 +265,10 @@ export class TilingDriver {
} else if (parentIndex != null) {
if (parentIndex == 0) {
// first tile in sequence, shift border down
kwinTile.resizeByPixels(diff, Kwin.Edge.BottomEdge);
kwinTile.parent.resizeByPixels(diff, Kwin.Edge.BottomEdge);
} else {
// shift border up
kwinTile.resizeByPixels(-diff, Kwin.Edge.TopEdge);
kwinTile.parent.resizeByPixels(-diff, Kwin.Edge.TopEdge);
}
}
}
Expand Down

0 comments on commit 695504f

Please sign in to comment.