Add toplevels_pending array and keep toplevel pointers there initially,
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.
Closes: #407 (closed)
Signed-off-by: Elias Rudberg mail@eliasrudberg.se
Edited by Guido Gunther