[Wayland-bugs] [Bug 766566] Wayland: gdk_screen_get_monitor_at_window() unreliable under Wayland

gtk+ (GNOME Bugzilla) bugzilla at gnome.org
Fri May 20 08:46:17 UTC 2016


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

--- Comment #23 from Olivier Fourdan <ofourdan at redhat.com> ---
For the record, these patches break some menu positioning in master with
multi-monitor setups because, in various places (including gtkcombobox), gtk
compares the monitor returned from the device event's root coordinates against
the monitor's position and size returned by get_monitor_at_window().

Since there is no such thing as global root coordinates in Wayland (just fake
root coordinates which are toplevel relative), that will not match now that
get_monitor_at_window() returns the real monitor.

After discussing with Jonas on irc, I'd rather not revert these patches though
(they do return the right monitor, whereas before it worked by chance as both
get_monitor_at_window() and get_monitor_at() where based on root coordinates,
so were equally wrong), because the menu positioning will be entirely reworked
to be done in gdk backends so this is will be fixed with bug 756579 that will
be discussed soon at the forthcoming gtk hackfest...

-- 
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/20160520/180b4175/attachment.html>


More information about the wayland-bugs mailing list