[Wayland-bugs] [Bug 766722] Wayland: gtkcombox menu misplaced in master
gtk+ (GNOME Bugzilla)
bugzilla at gnome.org
Tue May 31 06:15:40 UTC 2016
https://bugzilla.gnome.org/show_bug.cgi?id=766722
--- Comment #16 from Olivier Fourdan <ofourdan at redhat.com> ---
So to make it clear, there is no global coordinates in Wayland, so you just
cannot make real coordinates inside gdk, there is no way a client can know it's
global position on the screen in Wayland, therefore there is no way for
gdk_display_get_monitor_at_point() to work.
Considering that gdk_display_get_monitor_at_window() works though, the idea was
to translate the fake coordinate in the appropriate monitor so that
gdk_display_get_monitor_at_point() returns the correct monitor and menus can be
placed and sized correctly.
Another solution is to use the new xdg_positioner, for declarative positioning
of child surfaces. AFAIK, this work is being done in bug 756579 and will be
discussed at the hackfest in Toronto (as Jonas indicated).
Meanwhile these patches here fix the problem without requiring the new
protocol, so it may come useful either in master until the patches from bug
756579 eventually land in master, or in gtk-3-20 where the new protocol and
xdg-shell v6 might not be backported.
Anyway, I am not pushing either way, if someone complains about the menu being
misplaced in Wayland (as in bug 764310) these patches here can help.
I am fine with closing this bug as a dupe of bug 756579 if you prefer.
--
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/20160531/15b5113b/attachment.html>
More information about the wayland-bugs
mailing list