Skip to content

Commit 01a5dc4

Browse files
committed
fix: Only set maximize flag if window size 100%
1 parent be5ac10 commit 01a5dc4

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

ddterm/shell/geometry.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,9 @@ export const WindowGeometry = GObject.registerClass({
334334
this._swap_window_sizes();
335335

336336
this._set_orientation(Clutter.Orientation.HORIZONTAL);
337-
this._set_maximize_flag(Meta.MaximizeFlags.HORIZONTAL);
337+
338+
if (this.window_vsize >= 1.0)
339+
this._set_maximize_flag(Meta.MaximizeFlags.HORIZONTAL);
338340
break;
339341

340342
case Meta.Side.TOP:
@@ -343,7 +345,9 @@ export const WindowGeometry = GObject.registerClass({
343345
this._swap_window_sizes();
344346

345347
this._set_orientation(Clutter.Orientation.VERTICAL);
346-
this._set_maximize_flag(Meta.MaximizeFlags.VERTICAL);
348+
349+
if (this.window_hsize >= 1.0)
350+
this._set_maximize_flag(Meta.MaximizeFlags.VERTICAL);
347351
}
348352

349353
if (this._orientation === Clutter.Orientation.HORIZONTAL)

0 commit comments

Comments
 (0)