Revert of x11: Don't wait on a MapNotify on override-redirect windows. (patchset #3 id:40001 of https://codereview.chromium.org/1933923002/ )

Reason for revert:
Forcing a draw didn't actually fix the blank submenu issue.

Original issue's description:
> [reland] x11: Don't wait on a MapNotify on override-redirect windows.
>
> [This reland should theoretically fix a case where timing issues on
> AMD drivers appear to cause a blank window by forcing a redraw when
> we are an override-redirect window and receive a MapNotify.]
>
> Some window managers do not send MapNotify on override-redirect
> windows. Enlightenment doesn't send one, XFCE does, and I don't know
> which behaviour is more common.
>
> This makes mapping resilient against whether we would have received a
> MapNotify message on override-redirect window. On override-redirect
> windows, we immediately trigger the code that would run in the future
> MapNotify handler, and ignore it in the future MapNotify message if it
> is already run.
>
> BUG=381732,606661
> First Review URL: https://codereview.chromium.org/1896363004
>
> Committed: https://crrev.com/a23e0eae44653ab9f132d454ac6488c8c8005479
> Cr-Commit-Position: refs/heads/master@{#390773}

TBR=danakj@chromium.org
# Not skipping CQ checks because original CL landed more than 1 days ago.
BUG=381732,606661

Review-Url: https://codereview.chromium.org/1934413002
Cr-Commit-Position: refs/heads/master@{#390989}
2 files changed