Set the window up to be a layer surface once it is mapped.
window
this must be called before the window is realized.
A Window to be turned into a layer surface.