File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments