on xenial help sign in
fix [Pocket PC] fullscreen video isn't full screen

https://bugs.launchpad.net/ubuntu/+source/unity8/+bug/1511020

commitcd712a4a37e32ea2cc97b55092d9dc8c9d49c9a1 authorLukáš Tinkl <lukas.tinkl@canonical.com> dateFri 6 Nov 2015, 17:43 (11 years ago) parentca489bf
2 files changed+13−3
qml/Stages/DecoratedWindow.qml+2−2 qml/Stages/DesktopStage.qml+11−1
qml/Stages/DecoratedWindow.qml+2−2
@@ -27,8 +27,8 @@ FocusScope {
2727 property alias application: applicationWindow.application
2828 property alias active: decoration.active
2929 property alias title: decoration.title
30+ property alias fullscreen: applicationWindow.fullscreen
3031
31− property bool decorationShown: true
3232 property bool highlightShown: false
3333 property real shadowOpacity: 1
3434
@@ -73,7 +73,7 @@ FocusScope {
7373 onMaximize: root.maximize();
7474 onMinimize: root.minimize();
7575 onPressed: root.decorationPressed();
76− visible: decorationShown
76+ visible: window && !window.fullscreen
7777 }
7878
7979 ApplicationWindow {
qml/Stages/DesktopStage.qml+11−1
@@ -15,7 +15,6 @@
1515 */
1616
1717import QtQuick 2.4
18−import QtQuick.Layouts 1.1
1918import Ubuntu.Components 1.3
2019import Unity.Application 0.1
2120import "../Components/PanelState"
@@ -408,6 +407,17 @@ AbstractStage {
408407 when: index == spread.highlightedIndex && blurLayer.ready
409408 }
410409
410+ Connections {
411+ target: decoratedWindow
412+ onFullscreenChanged: {
413+ if (decoratedWindow.fullscreen) {
414+ appDelegate.maximize();
415+ } else {
416+ appDelegate.restoreFromMinimized();
417+ }
418+ }
419+ }
420+
411421 WindowResizeArea {
412422 objectName: "windowResizeArea"
413423 target: appDelegate