[PATCH 0/2] Support for high DPI outputs via scaling

Bill Spitzak spitzak at gmail.com
Tue May 14 13:20:28 PDT 2013


Alexander Larsson wrote:

> Now, a non-naive client will get the same maximize reply of 1000x1000,
> but in this case we want it to create a buffer of 2000x2000 (with scale
> 2) since it knows the window is on a high-dpi monitor. So, there is a
> natural separation of the surface size (1000x1000) and the buffer size
> (2000x2000).
> 
> We can't have the configure event say 2000x2000, because then old
> clients will not be auto-upscaled as we want.

The compositor can use the scaling factor of the surface to send all 
events to in, including maximize. So it can send 2000x2000 to the hi-res 
client and 1000x1000 to the client that did not set the scaling factor.

In fact this is going to be necessary if you want to support maximize 
sizes that are not a multiple of the scale.


More information about the wayland-devel mailing list