display: remove Qt::AA_X11InitThreads attribute
authorJinhyung Jo <jinhyung.jo@samsung.com>
Wed, 5 Oct 2016 08:12:21 +0000 (17:12 +0900)
committerJinhyung Jo <jinhyung.jo@samsung.com>
Thu, 6 Oct 2016 10:59:54 +0000 (19:59 +0900)
The Qt::AA_X11InitThreads attribute is obsolete and has no effect.

Change-Id: I6b0373b08e80b056f7f2a49700f4e07ade366a42
Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
tizen/src/ui/qt5_supplement.cpp

index 00dec85..81202fe 100644 (file)
@@ -455,17 +455,6 @@ void qt5_early_prepare(bool isOnscreen)
 
     Q_INIT_RESOURCE(resource);
 
-#ifdef CONFIG_LINUX
-    /* QGLWidget threading: Note that under X11 it is necessary to set the
-     * Qt::AA_X11InitThreads application attribute to make the X11 library
-     * and GLX calls thread safe, otherwise the above scenarios will fail. */
-
-    /* Calls XInitThreads() as part of the QApplication construction in order
-     * to make Xlib calls thread-safe. This attribute must be set before
-     * QApplication is constructed. */
-    QCoreApplication::setAttribute(Qt::AA_X11InitThreads);
-#endif
-
     qt5App = new QApplication(argc, argv);
 
     /* add the path in the application's main() function, right after the