Fixes: 25d80f327d81c901dc8b0d7923a24809d8426799
The default window should be set, but the logic was ignoring it for unknown hardware message bits. Using the foreground window as a fallback could be useful for cursor clipping, like it was before with QS_RAWINPUT.