We need to disable full-screen mode because there is no way to exit
when the browser is launched from matrix-gui

Signed-off-by: Eric Ruei <[email protected]>
---
 ...0001-qtwebbrowser-disable-FullScreen-mode.patch | 32 ++++++++++++++++++++++
 .../recipes-qt/qt5/qtwebbrowser_1.0.bbappend       |  7 +++++
 2 files changed, 39 insertions(+)
 create mode 100644 
meta-arago-distro/recipes-qt/qt5/qtwebbrowser/0001-qtwebbrowser-disable-FullScreen-mode.patch
 create mode 100644 meta-arago-distro/recipes-qt/qt5/qtwebbrowser_1.0.bbappend

diff --git 
a/meta-arago-distro/recipes-qt/qt5/qtwebbrowser/0001-qtwebbrowser-disable-FullScreen-mode.patch
 
b/meta-arago-distro/recipes-qt/qt5/qtwebbrowser/0001-qtwebbrowser-disable-FullScreen-mode.patch
new file mode 100644
index 0000000..fcf768b
--- /dev/null
+++ 
b/meta-arago-distro/recipes-qt/qt5/qtwebbrowser/0001-qtwebbrowser-disable-FullScreen-mode.patch
@@ -0,0 +1,32 @@
+From 720056bbce57184c1f352abb160942dbff2c1cd0 Mon Sep 17 00:00:00 2001
+From: Eric Ruei <[email protected]>
+Date: Tue, 6 Jun 2017 14:40:08 -0400
+Subject: [PATCH] qtwebbrowser: disable FullScreen mode
+
+We need to disable full-screen mode because there is no way to exit
+when the browser is launched from matrix-gui
+
+Upstream-Status: Inappropriate
+It is a TI-specific workaround per matrix-gui operation
+
+Signed-off-by: Eric Ruei <[email protected]>
+---
+ src/main.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/main.cpp b/src/main.cpp
+index 2181f15..5f146b6 100644
+--- a/src/main.cpp
++++ b/src/main.cpp
+@@ -101,7 +101,7 @@ int main(int argc, char **argv)
+     if (view.size().isEmpty())
+         view.setGeometry(0, 0, 800, 600);
+ #else
+-    view.showFullScreen();
++    view.show();
+ #endif
+ 
+     app.exec();
+-- 
+1.9.1
+
diff --git a/meta-arago-distro/recipes-qt/qt5/qtwebbrowser_1.0.bbappend 
b/meta-arago-distro/recipes-qt/qt5/qtwebbrowser_1.0.bbappend
new file mode 100644
index 0000000..3b7e80f
--- /dev/null
+++ b/meta-arago-distro/recipes-qt/qt5/qtwebbrowser_1.0.bbappend
@@ -0,0 +1,7 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+
+SRC_URI += " \
+    file://0001-qtwebbrowser-disable-FullScreen-mode.patch \
+"
+
+PR_append = ".arago0"
-- 
1.9.1

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

Reply via email to