The window::floating event should be emitted when a window transitions to or from the floating state.