summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2012-11-29 15:44:28 -0600
committerTimothy Pearson <[email protected]>2012-11-29 15:44:28 -0600
commitefaa417da026103aabdf8eed2736e8db97a4a15b (patch)
treed6329968d52fa09cff16d55f493aec6423523d72
parenta39e4221722f66eeab593b4bfe66b75fa8330a3d (diff)
downloadgtk-qt-engine-efaa417da026103aabdf8eed2736e8db97a4a15b.tar.gz
gtk-qt-engine-efaa417da026103aabdf8eed2736e8db97a4a15b.zip
Set GTK event passthrough on startup
-rw-r--r--src/qt_qt_wrapper.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/qt_qt_wrapper.cpp b/src/qt_qt_wrapper.cpp
index e886f5d..b23a72c 100644
--- a/src/qt_qt_wrapper.cpp
+++ b/src/qt_qt_wrapper.cpp
@@ -16,6 +16,7 @@
#include <tqdir.h>
#include <tqregexp.h>
#include <tqbitmap.h>
+#include <tqeventloop.h>
#include <kiconloader.h>
#include <kapplication.h>
@@ -395,6 +396,14 @@ void createTQApp()
free(argv[0]);
free(argv);
+
+ // Propagate glib events to GTK as needed
+ if (tqApp) {
+ TQEventLoop* loop = tqApp->eventLoop();
+ if (loop) {
+ loop->setSingleToolkitEventHandling(false);
+ }
+ }
if (!gtkQtEnable)
return;