[Wayland-bugs] [Bug 766722] New: Wayland: gtkcombox menu misplaced in master
gtk+ (GNOME Bugzilla)
bugzilla at gnome.org
Fri May 20 15:03:49 UTC 2016
https://bugzilla.gnome.org/show_bug.cgi?id=766722
Bug ID: 766722
Summary: Wayland: gtkcombox menu misplaced in master
Classification: Platform
Product: gtk+
Version: unspecified
OS: Linux
Status: NEW
Severity: normal
Priority: Normal
Component: Backend: Wayland
Assignee: gtk-bugs at gtk.org
Reporter: ofourdan at redhat.com
QA Contact: gtk-bugs at gtk.org
CC: jadahl at gmail.com, rob at robster.org.uk,
wayland-bugs at lists.freedesktop.org
Depends on: 766566
GNOME version: ---
Description:
The fix for bug 766566 introduced a discrepancy for Wayland, because gtk+
compares the size and position of 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 relative to the toplevel surface), and those values
that may not match in a multi monitor layout now that get_monitor_at_window()
returns the right monitor.
How reproducible:
100%
Steps to reproduce:
1. Build gtk+
2. Run "gtk3-demo --run combobox" on a multi-monitor setup
3. Open combo box menus.
Actual results:
The menu is placed at a screen edge
Expected results:
The menu is placed next to the combo box
Additional info:
One possibility would be to use gdk_display_get_monitor_at_point() every time
to have consistent (either right or wrong) results on Wayland as well as other
backends.
Proposed patch to follow, mostly an RFC. We can as well wait for the fixes for
bug 756579 to land.
--
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/e376e1b7/attachment.html>
More information about the wayland-bugs
mailing list