Window state signal listener
signal listener - called when state of window is changed
See Implementation
Window state signal listener