Fix moving of shaded windows.
Fix resizing of shaded windows.