on xenial help sign in
comment
80ad933Nick Dedekind
qml/Stages/StagedFullscreenPolicy.qml+8
@@ -17,6 +17,14 @@
17import QtQuick 2.4
17import QtQuick 2.4
18import Unity.Application 0.1
18import Unity.Application 0.1
19
19
20+// This component will change the state of the surface based on the surface
21+// state and shell chrome.
22+//
23+// Chrome changed to LowChrome -> server sets client window state to "fullscreen"
24+// Chrome changed to NormalChrome -> server sets client window to "restored" state.
25+// Chrome set and state change to restored -> server RESETS client window state to "fullscreen"
26+// Chrome not set and state change to restored -> client window stays "restored"
27+// Chrome not set and state change to fulscreen -> client window stays "fullscreen"
20QtObject {
28QtObject {
21 property bool active: true
29 property bool active: true
22 property QtObject application: null
30 property QtObject application: null
qml/Stages/WindowedFullscreenPolicy.qml+4
@@ -17,6 +17,10 @@
17import QtQml 2.2
17import QtQml 2.2
18import Unity.Application 0.1
18import Unity.Application 0.1
19
19
20+// This component will change the state of the surface when the stage is loaded.
21+//
22+// On first surface load; if the surface is set to low chrome & fullscreen, the
23+// state of the window is returned to restored.
20QtObject {
24QtObject {
21 property bool active: true
25 property bool active: true
22 property QtObject application: null
26 property QtObject application: null