Improved performance when resizing

Improved performance for MS and FreeRDP components when resizing, when
SmartSizing is activated.