<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 - wayland: gtk+ prevents using subsurfaces if the parent is not root"
   href="https://bugzilla.gnome.org/show_bug.cgi?id=774475">774475</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>wayland: gtk+ prevents using subsurfaces if the parent is not root
          </td>
        </tr>

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

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

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

        <tr>
          <th>OS</th>
          <td>Linux
          </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>ofourdan@redhat.com
          </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>Description:

Under Wayland, a subsurface would have another surface as parent, but gdk would
not allow native windows if the parent is not the root window:

   <a href="https://git.gnome.org/browse/gtk+/tree/gdk/gdkwindow.c#n1218">https://git.gnome.org/browse/gtk+/tree/gdk/gdkwindow.c#n1218</a>

As a result, the subsurface.c example in gtk+ is not actually using a Wayland
sursurface, because the parent is not the root window:

   <a href="https://git.gnome.org/browse/gtk+/tree/tests/subsurface.c?h=gtk-3-22#n49">https://git.gnome.org/browse/gtk+/tree/tests/subsurface.c?h=gtk-3-22#n49</a>

Note, the test subsurface.c has been removed from master, but that's unrelated,
a program should be able to create a subsurface with a parent and not just the
root window.</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>