Handle deleted files.
Allow moving windows.
Fix regression bug.