Fixes: NB#267391 - Boosting prevents QML apps from dropping the GL context on background

RevBy: Olli Leppanen
pull/1/head
Alexey Shilov 15 years ago
parent 0f05b2196c
commit 07b4a1977d

2
debian/changelog vendored

@ -1,6 +1,6 @@
applauncherd (0.30.5) unstable; urgency=low
*
* Fixes: NB#267391 - Boosting prevents QML apps from dropping the GL context on background
-- Alexey Shilov <alexey.shilov@nokia.com> Mon, 27 Jun 2011 13:28:30 +0300

@ -82,17 +82,8 @@ void MDeclarativeCachePrivate::populate()
qApplicationInstance = new QApplication(initialArgc, initialArgv);
}
bool default_widget_creation = QCoreApplication::testAttribute(Qt::AA_ImmediateWidgetCreation);
if (!default_widget_creation)
{
QCoreApplication::setAttribute(Qt::AA_ImmediateWidgetCreation, true);
}
qDeclarativeViewInstance = new QDeclarativeView();
// restore default value
QCoreApplication::setAttribute(Qt::AA_ImmediateWidgetCreation, default_widget_creation);
}
QApplication* MDeclarativeCachePrivate::qApplication(int &argc, char **argv)
@ -133,7 +124,6 @@ QApplication* MDeclarativeCachePrivate::qApplication(int &argc, char **argv)
break;
}
}
bool loadTestabilityEnv = !qgetenv("QT_LOAD_TESTABILITY").isNull();
if (loadTestabilityEnv || loadTestabilityArg)
@ -146,6 +136,8 @@ QApplication* MDeclarativeCachePrivate::qApplication(int &argc, char **argv)
Display *display = QX11Info::display();
if (display)
{
qDeclarativeViewInstance->winId();
XSetCommand(display, qDeclarativeViewInstance->effectiveWinId(), argv, argc);
// set correct WM_CLASS properties

Loading…
Cancel
Save