output scaling chicken-and-egg problem
Maxim Kartashev
maxim.kartashev at jetbrains.com
Fri Dec 2 15:07:55 UTC 2022
I wonder if it's possible to set the Wayland buffer scale correctly before
the window appears on the screen for the first time?
AFAIU, the sequence of events wrt proper scaling is roughly as follows:
- receive wl_output.scale for each output
- create surface, commit
- receive xdg_surface.configure
- create and attach a buffer, set_buffer_scale(X), commit
- receive wl_surface.enter(wl_output Y with scale Z)
- realize that Z != X, resize the buffer, do set_buffer_scale(Z)
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?
Thanks in advance!
Maxim.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/wakefield-dev/attachments/20221202/284feb01/attachment.htm>
More information about the wakefield-dev
mailing list