This also happens if a window is maximised using the buttons rather than dragging to top panel, and then unmaximised.
This also happens if a window is maximised using the buttons rather than dragging to top panel, and then unmaximised.