[gtk+] Fix an off-by-one error in serial range handling



commit 59bc9e8860394b92c5abf7c1570738e98b3271ce
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Sep 21 21:10:15 2010 -0400

    Fix an off-by-one error in serial range handling
    
    trap->end_sequence is the first serial for which we don't
    ignore errors anymore, so we know the trap is dead if
    end_sequence <= processed_serial.
    
    Bug 629608

 gdk/x11/gdkdisplay-x11.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdk/x11/gdkdisplay-x11.c b/gdk/x11/gdkdisplay-x11.c
index f15da8b..4c07fef 100644
--- a/gdk/x11/gdkdisplay-x11.c
+++ b/gdk/x11/gdkdisplay-x11.c
@@ -2772,7 +2772,7 @@ delete_outdated_error_traps (GdkDisplayX11 *display_x11)
       GdkErrorTrap *trap = tmp_list->data;
 
       if (trap->end_sequence != 0 &&
-          SEQUENCE_COMPARE (trap->end_sequence, <, processed_sequence))
+          SEQUENCE_COMPARE (trap->end_sequence, <=, processed_sequence))
         {
           GSList *free_me = tmp_list;
 



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