summaryrefslogtreecommitdiffstats
path: root/abs/core/mythtv/stable-0.28/mythtv/fixQTvirtualkeyboard.patch.28
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/mythtv/stable-0.28/mythtv/fixQTvirtualkeyboard.patch.28')
-rw-r--r--abs/core/mythtv/stable-0.28/mythtv/fixQTvirtualkeyboard.patch.2846
1 files changed, 46 insertions, 0 deletions
diff --git a/abs/core/mythtv/stable-0.28/mythtv/fixQTvirtualkeyboard.patch.28 b/abs/core/mythtv/stable-0.28/mythtv/fixQTvirtualkeyboard.patch.28
new file mode 100644
index 0000000..bfaad97
--- /dev/null
+++ b/abs/core/mythtv/stable-0.28/mythtv/fixQTvirtualkeyboard.patch.28
@@ -0,0 +1,46 @@
+--- src/mythtv/libs/libmythui/mythmainwindow.cpp.orig 2016-03-15 17:30:19.608956780 +0000
++++ src/mythtv/libs/libmythui/mythmainwindow.cpp 2016-03-15 17:37:17.368720092 +0000
+@@ -1458,6 +1458,7 @@
+ #endif
+ if (currentWidget())
+ {
++#ifdef Q_OS_MAC
+ // don't disable the current widget, instead we disable all its children
+ // on mac, disabling the current active widget entirely prevent keyboard to
+ // work on the newly opened widget.
+@@ -1473,6 +1474,9 @@
+ }
+ }
+ }
++#else
++ currentWidget()->setEnabled(false);
++#endif
+ #ifdef USE_OPENGL_QT5
+ else
+ {
+@@ -1506,8 +1510,6 @@
+ if (!current)
+ {
+ current = this;
+- // We're be to the main window, enable it just in case
+- setEnabled(true);
+ #ifdef USE_OPENGL_QT5
+ // Restore WA_PaintOnScreen, used by OpenGL GUI painter
+ setAttribute(Qt::WA_PaintOnScreen, d->m_bSavedPOS);
+@@ -1515,6 +1517,7 @@
+ QTimer::singleShot(2, d->paintwin, SLOT(update()));
+ #endif
+ }
++#ifdef Q_OS_MAC
+ else
+ {
+ QList<QWidget*> list = current->findChildren<QWidget *>();
+@@ -1529,6 +1532,8 @@
+ }
+ }
+ current->raise();
++#endif
++ current->setEnabled(true);
+ current->setFocus();
+ current->setMouseTracking(true);
+