WM: fix issue with full screen mode and minimize