[added to the 4.1 stable tree] perf top: Fix window dimensions change handling