diff --git a/hw/xwin/winglobals.c b/hw/xwin/winglobals.c index d7ea2e39a..2b6c8a8ad 100644 --- a/hw/xwin/winglobals.c +++ b/hw/xwin/winglobals.c @@ -73,7 +73,6 @@ char * g_pszCommandLine = NULL; Bool g_fSilentFatalError = FALSE; DWORD g_dwCurrentThreadID = 0; Bool g_fKeyboardHookLL = FALSE; -HWND g_hwndKeyboardFocus = NULL; Bool g_fNoHelpMessageBox = FALSE; Bool g_fSoftwareCursor = FALSE; Bool g_fSilentDupError = FALSE; @@ -120,7 +119,6 @@ void winInitializeGlobals (void) { g_dwCurrentThreadID = GetCurrentThreadId (); - g_hwndKeyboardFocus = NULL; #ifdef XWIN_CLIPBOARD g_fClipboardLaunched = FALSE; g_fClipboardStarted = FALSE; diff --git a/hw/xwin/winwndproc.c b/hw/xwin/winwndproc.c index 5e8451082..4e4eff22c 100644 --- a/hw/xwin/winwndproc.c +++ b/hw/xwin/winwndproc.c @@ -57,7 +57,6 @@ Bool g_fButton[3] = { FALSE, FALSE, FALSE }; extern Bool g_fClipboard; extern HWND g_hDlgDepthChange; extern Bool g_fKeyboardHookLL; -extern HWND g_hwndKeyboardFocus; extern Bool g_fSoftwareCursor; extern DWORD g_dwCurrentThreadID; @@ -964,9 +963,6 @@ winWindowProc (HWND hwnd, UINT message, if (s_pScreenPriv == NULL || s_pScreenInfo->fIgnoreInput) break; - /* Save handle of our main window that last received focus */ - g_hwndKeyboardFocus = hwnd; - /* Restore the state of all mode keys */ winRestoreModeKeyStates (); @@ -979,9 +975,6 @@ winWindowProc (HWND hwnd, UINT message, if (s_pScreenPriv == NULL || s_pScreenInfo->fIgnoreInput) break; - /* Clear handle of our main window that last received focus */ - g_hwndKeyboardFocus = NULL; - /* Release any pressed keys */ winKeybdReleaseKeys ();