Commit 546f823e authored by Paul Gofman's avatar Paul Gofman Committed by Alexandre Julliard

dinput: Unregister raw input on foreground loss.

parent a144c089
......@@ -320,13 +320,13 @@ static LRESULT WINAPI di_em_win_wndproc(HWND hwnd, UINT msg, WPARAM wparam, LPAR
case NOTIFY_THREAD_STOP:
state->running = FALSE;
break;
case NOTIFY_FOREGROUND_LOST:
handle_foreground_lost( (HWND)lparam );
/* fallthrough */
case NOTIFY_REFRESH_DEVICES:
while (state->devices_count--) dinput_device_internal_release( state->devices[state->devices_count] );
input_thread_update_device_list( state );
break;
case NOTIFY_FOREGROUND_LOST:
handle_foreground_lost( (HWND)lparam );
break;
}
return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment