Restoring maximized windows works now (mostly)