[gtk+/client-side-windows] Always return FALSE from idle callback to avoid loop



commit bd0e95081f6e4c6ede650a9fa3b7c5427034fabc
Author: Alexander Larsson <alexl redhat com>
Date:   Fri Jun 12 12:45:31 2009 +0200

    Always return FALSE from idle callback to avoid loop
    
    In the destroyed window case in do_synthesize_crossing_event we didn't
    return a value which can cause infinite "loops". Always return FALSE
    to make sure the idle doesn't run again.

 gdk/gdkwindow.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 2b6adc7..572e605 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -8736,7 +8736,7 @@ do_synthesize_crossing_event (gpointer data)
   changed_toplevel_priv->synthesize_crossing_event_queued = FALSE;
 
   if (GDK_WINDOW_DESTROYED (changed_toplevel))
-    return;
+    return FALSE;
 
   display = gdk_drawable_get_display (changed_toplevel);
   serial = _gdk_windowing_window_get_next_serial (display);



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