@@ -372,16 +372,20 @@ AbstractStage {
372372 animationsEnabled = (animated === undefined) || animated;
373373 windowState = WindowStateStorage.WindowStateMaximized;
374374 }
375− function maximizeLeft() {
375+ function maximizeLeft(animated) {
376+ animationsEnabled = (animated === undefined) || animated;
376377 windowState = WindowStateStorage.WindowStateMaximizedLeft;
377378 }
378− function maximizeRight() {
379+ function maximizeRight(animated) {
380+ animationsEnabled = (animated === undefined) || animated;
379381 windowState = WindowStateStorage.WindowStateMaximizedRight;
380382 }
381− function maximizeHorizontally() {
383+ function maximizeHorizontally(animated) {
384+ animationsEnabled = (animated === undefined) || animated;
382385 windowState = WindowStateStorage.WindowStateMaximizedHorizontally;
383386 }
384− function maximizeVertically() {
387+ function maximizeVertically(animated) {
388+ animationsEnabled = (animated === undefined) || animated;
385389 windowState = WindowStateStorage.WindowStateMaximizedVertically;
386390 }
387391 function minimize(animated) {
@@ -485,11 +489,13 @@ AbstractStage {
485489 },
486490 State {
487491 name: "maximizedHorizontally"; when: appDelegate.maximizedHorizontally && !appDelegate.minimized
488− PropertyChanges { target: appDelegate; x: root.leftMargin; requestedWidth: appContainer.width - root.leftMargin }
492+ PropertyChanges { target: appDelegate; x: root.leftMargin }
493+ PropertyChanges { target: decoratedWindow; requestedWidth: appContainer.width - root.leftMargin }
489494 },
490495 State {
491496 name: "maximizedVertically"; when: appDelegate.maximizedVertically && !appDelegate.minimized
492− PropertyChanges { target: appDelegate; y: PanelState.panelHeight; requestedHeight: appContainer.height - PanelState.panelHeight }
497+ PropertyChanges { target: appDelegate; y: PanelState.panelHeight }
498+ PropertyChanges { target: decoratedWindow; requestedHeight: appContainer.height - PanelState.panelHeight }
493499 },
494500 State {
495501 name: "minimized"; when: appDelegate.minimized