Fix mouse/keyboard input on Windows.
This commit is contained in:
parent
f8039f9b99
commit
d301601360
|
@ -311,9 +311,6 @@ void Launcher::init() {
|
||||||
// and https://github.com/telegramdesktop/tdesktop/issues/7549
|
// and https://github.com/telegramdesktop/tdesktop/issues/7549
|
||||||
// and https://github.com/telegramdesktop/tdesktop/issues/948
|
// and https://github.com/telegramdesktop/tdesktop/issues/948
|
||||||
// more info: https://doc.qt.io/qt-5/qguiapplication.html#isFallbackSessionManagementEnabled
|
// more info: https://doc.qt.io/qt-5/qguiapplication.html#isFallbackSessionManagementEnabled
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
|
|
||||||
QApplication::setAttribute(Qt::AA_DisableSessionManager, true);
|
|
||||||
#endif // Qt >= 5.14
|
|
||||||
QApplication::setFallbackSessionManagementEnabled(false);
|
QApplication::setFallbackSessionManagementEnabled(false);
|
||||||
|
|
||||||
initHook();
|
initHook();
|
||||||
|
|
|
@ -50,6 +50,10 @@ Launcher::Launcher(int argc, char *argv[])
|
||||||
}
|
}
|
||||||
|
|
||||||
void Launcher::initHook() {
|
void Launcher::initHook() {
|
||||||
|
#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
|
||||||
|
QApplication::setAttribute(Qt::AA_DisableSessionManager, true);
|
||||||
|
#endif // Qt >= 5.14
|
||||||
|
|
||||||
QApplication::setDesktopFileName(GetLauncherFilename());
|
QApplication::setDesktopFileName(GetLauncherFilename());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue