Only write dirty windows