<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:psychon@znc.in" title="Uli Schlachter <psychon@znc.in>"> <span class="fn">Uli Schlachter</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED NOTOURBUG - integrated VNC/Spice viewer widget in virt-manager stops updating w/ xlib-xcb enabled cairo"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=85005">bug 85005</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEW
           </td>
           <td>RESOLVED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>NOTOURBUG
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED NOTOURBUG - integrated VNC/Spice viewer widget in virt-manager stops updating w/ xlib-xcb enabled cairo"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=85005#c3">Comment # 3</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED NOTOURBUG - integrated VNC/Spice viewer widget in virt-manager stops updating w/ xlib-xcb enabled cairo"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=85005">bug 85005</a>
              from <span class="vcard"><a class="email" href="mailto:psychon@znc.in" title="Uli Schlachter <psychon@znc.in>"> <span class="fn">Uli Schlachter</span></a>
</span></b>
        <pre>Sigh. The bug is in spice.

In `spike-gtk-0.25` (I'm looking at the version in debian testing), go to
`gtk/spice-widget-cairo.c`, line 126. After the `if (d->ximage) {` add
`cairo_surface_mark_dirty(d->ximage)` and see if that fixes the problem. It
might also make everything die with an assertion failure.

I cannot find any code that draws to the cairo image surface that is saved in
`d->ximage`, but from what I see is that spice is modifying the image data
inside of an image surface behind of cairo's back. Spice has to call
`cairo_surface_flush()` before drawing directly to that data and
`cairo_surface_mark_dirty()` or `cairo_surface_mark_dirty_area()` afterwards.

Without this, cairo assumes that the pixel content of the image surface did not
change and thus does some clever caching to speed things up. This might only
break with `xlib-xcb`, but is still a bug in spice.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>