<html>
    <head>
      <base href="https://bugs.freedesktop.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 - Weston renders sub-surface even if parent is not mapped"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=94735">94735</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Weston renders sub-surface even if parent is not mapped
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Wayland
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

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

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

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>weston
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>wayland-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>mgraesslin@kde.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=122602" name="attach_122602" title="WAYLAND_DEBUG output">attachment 122602</a> <a href="attachment.cgi?id=122602&action=edit" title="WAYLAND_DEBUG output">[details]</a></span>
WAYLAND_DEBUG output

Weston renders sub-surfaces with a not mapped parent. According to the Wayland
spec a sub-surface should only be mapped if the parent is mapped: "A
sub-surface becomes mapped, when a non-NULL wl_buffer is applied and the parent
surface is mapped."

To reproduce:
* run systemsettings5
* go to Desktop Behavior -> Desktop Effects
* this creates a sub-surface tree with not mapped parents, but the child is
visible

Please see the attached log with WAYLAND_DEBUG of systemsettings. The last
child which is incorrectly rendered is wl_surface@97 which is a sub-surface to
wl_surface@65, but wl_surface@65 never gets a buffer attached.

This is of course also a client bug which is reported at
<a href="https://bugreports.qt.io/browse/QTBUG-52192">https://bugreports.qt.io/browse/QTBUG-52192</a>, but of course the compositor
should behave according to the spec ;-)</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>