@@ -325,6 +325,10 @@ AbstractStage {
327 states: [
327 states: [
329+ name: "fullscreen"; when: decoratedWindow.fullscreen
329 name: "normal";
333 name: "normal";
330 when: !appDelegate.maximized && !appDelegate.minimized
334 when: !appDelegate.maximized && !appDelegate.minimized
@@ -372,15 +376,6 @@ AbstractStage {
372 PropertyAction { target: appDelegate; properties: "visuallyMinimized,visuallyMaximized" }
376 PropertyAction { target: appDelegate; properties: "visuallyMinimized,visuallyMaximized" }
373 PropertyAnimation { target: appDelegate; properties: "x,y,opacity,width,height,scale" }
377 PropertyAnimation { target: appDelegate; properties: "x,y,opacity,width,height,scale" }
377− enabled: appDelegate.animationsEnabled
378− PropertyAction { target: appDelegate; property: "visuallyMinimized" }
379− SequentialAnimation {
380− PropertyAnimation { target: appDelegate; properties: "x,y,opacity,width,height,scale" }
381− PropertyAction { target: appDelegate; property: "visuallyMaximized" }
384 Transition {
379 Transition {
385 to: "minimized"
380 to: "minimized"
386 enabled: appDelegate.animationsEnabled
381 enabled: appDelegate.animationsEnabled
@@ -396,6 +391,15 @@ AbstractStage {
396+ to: "*" //maximized and fullscreen
397+ enabled: appDelegate.animationsEnabled
398+ PropertyAction { target: appDelegate; property: "visuallyMinimized" }
399+ SequentialAnimation {
400+ PropertyAnimation { target: appDelegate; properties: "x,y,opacity,width,height,scale" }
401+ PropertyAction { target: appDelegate; property: "visuallyMaximized" }
@@ -407,17 +411,6 @@ AbstractStage {
407 when: index == spread.highlightedIndex && blurLayer.ready
411 when: index == spread.highlightedIndex && blurLayer.ready
411− target: decoratedWindow
412− onFullscreenChanged: {
413− if (decoratedWindow.fullscreen) {
414− appDelegate.maximize();
416− appDelegate.restoreFromMinimized();
421 WindowResizeArea {
414 WindowResizeArea {
422 objectName: "windowResizeArea"
415 objectName: "windowResizeArea"
423 target: appDelegate
416 target: appDelegate