Unrelated to the comments above and unfortunately, after looking at https://bugs.winehq.org/show_bug.cgi?id=58167 which seems like a similar issue, I think there's more to it that just preventing reactivation *during* the WM_ACTIVATE message. It's maybe a slightly different issue but I think it's related and I'll see if we can fix both at once.