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

gtk+ (GNOME Bugzilla) bugzilla at gnome.org
Fri Sep 23 06:06:25 UTC 2016


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

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

When the monitor is scaled (i.e. HiDPI scaling) the placement
coordinates are still in unscaled xdg_surface window geometry
coordinate space. Fix this by simply scaling the coordinates by the
monitor scale of the parent toplevel window.

This is inherently racy, but since we won't move the toplevel window
before the popup is placed, and we won't move the window without
unmapping the popup, there is little point in introducing more complex
adaptive scaling, especially when the end goal is to get rid of all
these types of scaling hacks.

-- 
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/20160923/cb30a506/attachment.html>


More information about the wayland-bugs mailing list