Add back WriteBufferIfNecessary for window movement mappings