diff --git a/src/qt_qt_wrapper.cpp b/src/qt_qt_wrapper.cpp index bc99cf3..7379888 100644 --- a/src/qt_qt_wrapper.cpp +++ b/src/qt_qt_wrapper.cpp @@ -21,6 +21,8 @@ #include #include +#include +#include #ifdef USE_FREEBSD #include @@ -286,7 +288,7 @@ void createTQApp() close(fd); } } - + if (ret == -1) { printf("Gtk-Qt theme engine warning:\n"); @@ -320,7 +322,7 @@ void createTQApp() #endif // USE_SOLARIS mozillaFix = (cmdLine.contains("mozilla") || cmdLine.contains("firefox")); - + openOfficeFix = (cmdLine.endsWith("soffice.bin")) | (cmdLine.endsWith("swriter.bin")) | (cmdLine.endsWith("scalc.bin")) @@ -329,12 +331,12 @@ void createTQApp() | (cmdLine.endsWith("simpress.bin")); eclipseFix = cmdLine.contains("eclipse"); - + gtkQtDebug = (getenv("GTK_TQT_ENGINE_DEBUG") != NULL) ? 1 : 0; - + if (gtkQtDebug) printf("createTQApp()\n"); - + char* sessionEnv = getenv("SESSION_MANAGER"); if (TQString(sessionEnv).endsWith(TQString::number(getpid())) || cmdLine.contains("nspluginviewer") || cmdLine.contains("gnome-wm") || cmdLine.contains("metacity") || cmdLine.contains("xfwm4") || (getenv("GTK_TQT_ENGINE_DISABLE") != NULL)) { @@ -346,15 +348,15 @@ void createTQApp() int (*original_xio_errhandler)( Display *dpy ); original_x_errhandler = XSetErrorHandler( dummy_x_errhandler ); original_xio_errhandler = XSetIOErrorHandler( dummy_xio_errhandler ); - + #ifndef USE_SOLARIS unsetenv("SESSION_MANAGER"); #else putenv("SESSION_MANAGER="); #endif - + initKdeSettings(); - + if (!tqApp) { new TQApplication(gdk_x11_get_default_xdisplay());