<html>
    <head>
      <base href="https://bugzilla.gnome.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Gtk.Popover misplacement in Wayland (conflict between set_relative_to() and set_pointing_to()"
   href="https://bugzilla.gnome.org/show_bug.cgi?id=774148">774148</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Gtk.Popover misplacement in Wayland (conflict between set_relative_to() and set_pointing_to()
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Platform
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>gtk+
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.20.x
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Backend: Wayland
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>gtk-bugs@gtk.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>cedric.bellegarde@adishatz.org
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>gtk-bugs@gtk.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>rob@robster.org.uk, wayland-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>GNOME version</th>
          <td>---
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=339399" name="attach_339399" title="test.py">attachment 339399</a> <a href="attachment.cgi?id=339399&action=edit" title="test.py">[details]</a></span>
test.py

Description of problem:

When having a Gtk.Popover relative to a Gtk.Popover child, widget is misplaced
in Wayland (no issue with Xorg).

How reproducible:

Run test.py (attachement) like this:
python3 test.py

Steps to Reproduce:
1. Click on "Click me" button
2. Click on "Click me again" button

Actual results:

Popover is misplaced

Expected results:

Popover placed at set_pointing_to() of set_relative_to() widget

Additional info:

GDK_BACKEND=x11 python3 test.py fix the issue</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>