[Wayland-bugs] [Bug 766566] Wayland: gdk_screen_get_monitor_at_window() unreliable under Wayland
gtk+ (GNOME Bugzilla)
bugzilla at gnome.org
Thu May 19 07:24:15 UTC 2016
https://bugzilla.gnome.org/show_bug.cgi?id=766566
--- Comment #15 from Olivier Fourdan <ofourdan at redhat.com> ---
The existing gdk API needs a way to identify the output from a gdkwindow.
Using the last entered output is probably sub-optimal, but bit it's still an
improvement over the (previous) current situation where the function would
always return the first monitor because its heuristic was based on global
coordinates. Granted, it's not perfect but it's a lot less wrong than before.
With current xdg-shell protocol v5, there is no better way to even have a hint
on which output the surface resides.
If we extend that in xdg-shell v6 to get a more precise value (like the output
the window is mostly in, for example), then we can use the same
gdk_wayland_window_get_wl_output() API to return that (better) value, so I
don't agree the API addition in itself doesn't make sense.
--
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/20160519/301bf37b/attachment.html>
More information about the wayland-bugs
mailing list