Disposed surface causes kwin wayland to crash
src/win/wayland/window.cpp:371 return hidden || !surface()->buffer();
kwin crashed here with a window with the caption "Desktop \u2014 Plasma"
At this point the surface had already been disposed
print m_surface = 0x0
This happens very randomly when using a full plasma session, but usually within an hour when doing normal desktop use. Not really sure what would dispose the surface but keep the window around there. (Remnant?) For now I am changing the code to check the surface first, then the buffer, but wanted to have someone more familiar look at the possible repercussions of surface being null here.