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 ...@@ -320,13 +320,13 @@ static LRESULT WINAPI di_em_win_wndproc(HWND hwnd, UINT msg, WPARAM wparam, LPAR
case NOTIFY_THREAD_STOP: case NOTIFY_THREAD_STOP:
state->running = FALSE; state->running = FALSE;
break; break;
case NOTIFY_FOREGROUND_LOST:
handle_foreground_lost( (HWND)lparam );
/* fallthrough */
case NOTIFY_REFRESH_DEVICES: case NOTIFY_REFRESH_DEVICES:
while (state->devices_count--) dinput_device_internal_release( state->devices[state->devices_count] ); while (state->devices_count--) dinput_device_internal_release( state->devices[state->devices_count] );
input_thread_update_device_list( state ); input_thread_update_device_list( state );
break; break;
case NOTIFY_FOREGROUND_LOST:
handle_foreground_lost( (HWND)lparam );
break;
} }
return 0; 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