diff options
Diffstat (limited to 'src/mumble/GlobalShortcut_win.cpp')
-rw-r--r-- | src/mumble/GlobalShortcut_win.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mumble/GlobalShortcut_win.cpp b/src/mumble/GlobalShortcut_win.cpp index 054b20b3d..d08b722ed 100644 --- a/src/mumble/GlobalShortcut_win.cpp +++ b/src/mumble/GlobalShortcut_win.cpp @@ -52,6 +52,7 @@ static uint qHash(const GUID &a) { return val; } +#ifndef Q_OS_WIN64 static HWND WINAPI HookWindowFromPoint(POINT p); static BOOL WINAPI HookSetForegroundWindow(HWND hwnd); @@ -83,6 +84,7 @@ static BOOL WINAPI HookSetForegroundWindow(HWND hwnd) { return ret; } +#endif /** * Returns a platform specific GlobalShortcutEngine object. @@ -102,6 +104,10 @@ GlobalShortcutWin::GlobalShortcutWin() { // Hidden setting to disable hooking bHook = g.qs->value(QLatin1String("winhooks"), true).toBool(); +#ifdef Q_OS_WIN64 + qWarning("GlobalShortcutWin: force-disabling 'winhooks' on x64"); + bHook = false; +#endif GetKeyboardState(ucKeyState); |