server: Send mouse hardware messages to thread owning top-most window.