[gtk+] wayland: Unset window_impl->commit_pending when hiding the surface



commit 7fbac5771222fe8ab0eb2b61cf567b63b13b3712
Author: Carlos Garnacho <carlosg gnome org>
Date:   Mon Sep 1 20:20:49 2014 +0200

    wayland: Unset window_impl->commit_pending when hiding the surface
    
    A surface may be hidden when a frame is already scheduled, which may cause
    crashes on on_frame_clock_after_paint() when calling commit() on a NULL
    surface. To fix this, ensure commit_pending is also set to FALSE when the
    surface is gone.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=735226

 gdk/wayland/gdkwindow-wayland.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gdk/wayland/gdkwindow-wayland.c b/gdk/wayland/gdkwindow-wayland.c
index d40599e..2dcc552 100644
--- a/gdk/wayland/gdkwindow-wayland.c
+++ b/gdk/wayland/gdkwindow-wayland.c
@@ -1182,6 +1182,7 @@ gdk_wayland_window_hide_surface (GdkWindow *window)
       impl->outputs = NULL;
     }
 
+  impl->pending_commit = FALSE;
   impl->mapped = FALSE;
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]