[Wayland-bugs] [Bug 771841] [Wayland] Drop-down menus are broken in position and size on HiDPI screens

gtk+ (GNOME Bugzilla) bugzilla at gnome.org
Thu Oct 13 06:00:32 UTC 2016


https://bugzilla.gnome.org/show_bug.cgi?id=771841

Jonas Ådahl <jadahl at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #336140|0                           |1
        is obsolete|                            |

--- Comment #33 from Jonas Ådahl <jadahl at gmail.com> ---
Created attachment 337556
  --> https://bugzilla.gnome.org/attachment.cgi?id=337556&action=edit
wayland/xdg-shell: Scale positioner coordinates

When the monitor is scaled (i.e. HiDPI scaling) the placement coordinates
ere still in unscaled xdg_surface window geometry coordinate space when
used to place the window. Fix this by scaling the coordinates by the
monitor scale of the parent toplevel window before using them.

-----

Rewrote the first patch to scale the coordinates as a more sane place. Also
added a comment documenting the coordinate space of the stored placement rule
fields.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-bugs/attachments/20161013/5693b801/attachment.html>


More information about the wayland-bugs mailing list