<div dir="ltr"><div>I wonder if it's possible to set the Wayland buffer scale correctly before the window appears on the screen for the first time?</div><div>AFAIU, the sequence of events wrt proper scaling is roughly as follows:</div><div>- receive wl_output.scale for each output</div><div>- create surface, commit<br></div><div>- receive xdg_surface.configure</div><div>- create and attach a buffer, set_buffer_scale(X), commit<br></div><div>- receive wl_surface.enter(wl_output Y with scale Z)<br></div><div>- realize that Z != X, resize the buffer, do set_buffer_scale(Z)</div><div><br></div><div>So there's a potential for the window to "twitch" when it first appears on some output it didn't anticipate and its scale (and the size of the buffer) had to be adjusted. Is there a better way? Or maybe I'm interpreting the protocol in the wrong way?</div><div><br></div><div>Thanks in advance!</div><div><br></div><div>Maxim.</div><div><br></div></div>