Skip to content

Commit

Permalink
fix: do not ignore second windows when resize
Browse files Browse the repository at this point in the history
Fix issue #135
  • Loading branch information
TheMachine02 authored and Mikhail Zolotukhin committed Nov 4, 2021
1 parent 416d57e commit 165008b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kwinscript/engine/layout/quarter_layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default class QuarterLayout implements WindowsLayout {
if ((idx === 0 || idx === 3) && delta.east !== 0) {
this.vsplit =
(Math.floor(area.width * this.vsplit) + delta.east) / area.width;
} else if ((idx === 2 || idx === 2) && delta.west !== 0) {
} else if ((idx === 1 || idx === 2) && delta.west !== 0) {
this.vsplit =
(Math.floor(area.width * this.vsplit) - delta.west) / area.width;
}
Expand Down

0 comments on commit 165008b

Please sign in to comment.