[Wayland-bugs] [Bug 101436] Screen size cannot rely on wl_output scale and geometry

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Jun 15 08:45:50 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=101436

--- Comment #2 from Jonas Ã…dahl <jadahl at gmail.com> ---
(In reply to Pekka Paalanen from comment #1)
> Could you also clarify what "screen size" and "monitor size" mean and what
> they are used for via Xwayland? I kind of know what they are in X11, but I
> have no idea how X11 applications use them.

They may for example position a popup menu in relation to the edges. For
example if you open context menu far to the right in Firefox, it'll expand to
the left instead of right if it wouldn't fit to the right. They also tend to
use it to be "smart" about an initial size, e.g. to cover N % of the screen
space or something.

> 
> E.g. for fullscreening, I would hope apps used WM protocols to ask what
> their fullscreen size should be, but I understand that's wishful thinking.
> So how exactly are these details used?
> 

How maximize and fullscreen works I'm not very familiar with.

> This report sound like a continuation of the long irc discussion I had with
> Olivier Fourdan, where talked about how one could support HiDPI and
> mixed-dpi systems with Xwayland. Should we include that topic here as well?

Mixed DPI systems is also covered in
https://bugs.freedesktop.org/show_bug.cgi?id=93315 . But yea, mixed DPI systems
are relevant here. Are the conclusions / raised issues etc from that discussion
summarized anywhere?

> 
> You now want to support fractional scaling behind applications' back. Was
> this not foreseen when the wl_output and wl_buffer scale protocol was
> designed? What has changed? Why is it now feasible?

Currently it is done by telling clients to scale with ceilf(scale) then
downscale. For example if you scale the area of a monitor with scale 1.5,
you'll tell clients to draw at 2, then downscale to 1.5.

Right now this works by pretending that the mode of wl_output is the logical
monitor size. Xwayland windows will of course still always to be considered
scale 1, and upscaled to 1.5.

I somewhat touched on it in this E-mail:
https://mail.gnome.org/archives/gnome-shell-list/2017-June/msg00000.html

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-bugs/attachments/20170615/c9fc6fc9/attachment.html>


More information about the wayland-bugs mailing list