Add toplevels_pending array and keep toplevel pointers there initially,

Closed Administrator requested to merge toplevel-fix-2 into master

moving to regular toplevels array when toplevel is configured. This avoids problem when a close event comes before the toplevel was configured, now the toplevel can be found in toplevels_pending in that case.

Signed-off-by: Elias Rudberg

Merge request reports