From efaa417da026103aabdf8eed2736e8db97a4a15b Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 29 Nov 2012 15:44:28 -0600 Subject: Set GTK event passthrough on startup --- src/qt_qt_wrapper.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src') 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 #include #include +#include #include #include @@ -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; -- cgit v1.2.1