qt(windows): use direct connect for mousepoll

This commit is contained in:
ts-korhonen
2021-12-12 18:48:11 +02:00
parent 03c077dfa7
commit c5261da4f3

View File

@@ -113,7 +113,7 @@ int main(int argc, char* argv[]) {
{
app.installNativeEventFilter(rawInputFilter.get());
QObject::disconnect(main_window, &MainWindow::pollMouse, 0, 0);
QObject::connect(main_window, &MainWindow::pollMouse, (WindowsRawInputFilter*)rawInputFilter.get(), &WindowsRawInputFilter::mousePoll);
QObject::connect(main_window, &MainWindow::pollMouse, (WindowsRawInputFilter*)rawInputFilter.get(), &WindowsRawInputFilter::mousePoll, Qt::DirectConnection);
main_window->setSendKeyboardInput(false);
}
#endif