Fixed small bug regarding window event handling when destroying
windows. Extracted the resize function and forced a resize of all
windows when a window is destroyed.

Signed-off-by: Martin Jorn Rogalla <martin@martinrogalla.com>