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: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
                CC: [email protected], [email protected],
                    [email protected]
        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.
_______________________________________________
wayland-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/wayland-bugs

Reply via email to