flame: set window size from buffer size