Commit c99b1edf authored by Behdad Esfahbod's avatar Behdad Esfahbod Committed by Behdad Esfahbod

Fix serial number comparison regression introduced recently. (#474897)

2007-09-10  Behdad Esfahbod  <behdad@gnome.org>

        * gdk/x11/gdkgeometry-x11.c (gdk_window_queue),
        (_gdk_window_process_expose): Fix serial number comparison regression
        introduced recently. (#474897)


svn path=/trunk/; revision=18789
parent d7d3690f
2007-09-10 Behdad Esfahbod <behdad@gnome.org>
* gdk/x11/gdkgeometry-x11.c (gdk_window_queue),
(_gdk_window_process_expose): Fix serial number comparison regression
introduced recently. (#474897)
2007-09-10 Richard Hult <richard@imendio.com>
* gtk/gtksearchenginesimple.h: Build fix, correct a typo in the
......
......@@ -1052,7 +1052,8 @@ gdk_window_queue (GdkWindow *window,
GdkWindowQueueItem *item = tmp_list->data;
GList *next = tmp_list->next;
if (serial - item->serial < 0x7FFFFFFF)
/* an overflow-safe (item->serial < serial) */
if (item->serial - serial > (gulong) G_MAXLONG)
{
queue_delete_link (display_x11->translate_queue, tmp_list);
queue_item_free (item);
......@@ -1143,7 +1144,9 @@ _gdk_window_process_expose (GdkWindow *window,
{
GdkWindowQueueItem *item = tmp_list->data;
GList *next = tmp_list->next;
if (item->serial - serial < 0x7FFFFFFF)
/* an overflow-safe (serial < item->serial) */
if (serial - item->serial > (gulong) G_MAXLONG)
{
if (item->window == window)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment