wayland: force wl surface frame callbacks on commit for undamaged surfaces
authorDerek Foreman <derekf@osg.samsung.com>
Fri, 7 Aug 2015 21:20:05 +0000 (17:20 -0400)
committerMike Blumenkrantz <zmike@osg.samsung.com>
Fri, 7 Aug 2015 21:20:05 +0000 (17:20 -0400)
Summary:
Doing it just for bufferless surfaces wasn't quite enough, sometimes
we get a sequence like: attach, commit, frame, commit

And we need to respond to the frame.

 #Kansas

Reviewers: zmike

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2934

src/bin/e_comp_wl.c

index b6e4686..97ed026 100644 (file)
@@ -2768,7 +2768,7 @@ e_comp_wl_surface_commit(E_Client *ec)
    Eina_Bool ignored;
 
    _e_comp_wl_surface_state_commit(ec, &ec->comp_data->pending);
-   if (!e_pixmap_usable_get(ec->pixmap))
+   if (!e_comp_object_damage_exists(ec->frame))
      e_pixmap_image_clear(ec->pixmap, 1);
 
    ignored = ec->ignored;