Commit 4db2561d authored by rhlabs's avatar rhlabs

<raster@redhat.com>



<raster@redhat.com>

fixed minor buglets in window tree walker.
parent 355e74fc
Tue Mar 10 00:49:18 EST 1998 The Rasterman <raster@redhat.com>
* gdk/gdkwindow.c: (gdk_window_xid_at) fixed minor memory leak and
minor buglet in tree search.
Mon Mar 9 21:21:19 PST 1998 Shawn T. Amundson <amundson@gimp.org>
* Released 0.99.5
......
Tue Mar 10 00:49:18 EST 1998 The Rasterman <raster@redhat.com>
* gdk/gdkwindow.c: (gdk_window_xid_at) fixed minor memory leak and
minor buglet in tree search.
Mon Mar 9 21:21:19 PST 1998 Shawn T. Amundson <amundson@gimp.org>
* Released 0.99.5
......
Tue Mar 10 00:49:18 EST 1998 The Rasterman <raster@redhat.com>
* gdk/gdkwindow.c: (gdk_window_xid_at) fixed minor memory leak and
minor buglet in tree search.
Mon Mar 9 21:21:19 PST 1998 Shawn T. Amundson <amundson@gimp.org>
* Released 0.99.5
......
Tue Mar 10 00:49:18 EST 1998 The Rasterman <raster@redhat.com>
* gdk/gdkwindow.c: (gdk_window_xid_at) fixed minor memory leak and
minor buglet in tree search.
Mon Mar 9 21:21:19 PST 1998 Shawn T. Amundson <amundson@gimp.org>
* Released 0.99.5
......
Tue Mar 10 00:49:18 EST 1998 The Rasterman <raster@redhat.com>
* gdk/gdkwindow.c: (gdk_window_xid_at) fixed minor memory leak and
minor buglet in tree search.
Mon Mar 9 21:21:19 PST 1998 Shawn T. Amundson <amundson@gimp.org>
* Released 0.99.5
......
Tue Mar 10 00:49:18 EST 1998 The Rasterman <raster@redhat.com>
* gdk/gdkwindow.c: (gdk_window_xid_at) fixed minor memory leak and
minor buglet in tree search.
Mon Mar 9 21:21:19 PST 1998 Shawn T. Amundson <amundson@gimp.org>
* Released 0.99.5
......
Tue Mar 10 00:49:18 EST 1998 The Rasterman <raster@redhat.com>
* gdk/gdkwindow.c: (gdk_window_xid_at) fixed minor memory leak and
minor buglet in tree search.
Mon Mar 9 21:21:19 PST 1998 Shawn T. Amundson <amundson@gimp.org>
* Released 0.99.5
......
......@@ -85,8 +85,9 @@ gdk_window_xid_at(Window base, gint bx, gint by, gint x, gint y)
return child;
}
}
XFree(list);
}
return 0;
return base;
}
/*
......@@ -116,6 +117,7 @@ gdk_window_xid_at_coords(gint x, gint y, GList *excludes)
private=(GdkWindowPrivate*)window;
disp=private->xdisplay;
root=private->xwindow;
XGrabServer(disp);
if (!XQueryTree(disp,root,&root_win,&parent_win,&list,&num))
return root;
if (list)
......@@ -128,6 +130,7 @@ gdk_window_xid_at_coords(gint x, gint y, GList *excludes)
{
if (!g_list_find(excludes,(gpointer)child))
{
XUngrabServer(disp);
XFree(list);
return child;
}
......@@ -135,11 +138,13 @@ gdk_window_xid_at_coords(gint x, gint y, GList *excludes)
else
{
XFree(list);
XUngrabServer(disp);
return child;
}
}
}
}
XUngrabServer(disp);
return root;
}
......
......@@ -85,8 +85,9 @@ gdk_window_xid_at(Window base, gint bx, gint by, gint x, gint y)
return child;
}
}
XFree(list);
}
return 0;
return base;
}
/*
......@@ -116,6 +117,7 @@ gdk_window_xid_at_coords(gint x, gint y, GList *excludes)
private=(GdkWindowPrivate*)window;
disp=private->xdisplay;
root=private->xwindow;
XGrabServer(disp);
if (!XQueryTree(disp,root,&root_win,&parent_win,&list,&num))
return root;
if (list)
......@@ -128,6 +130,7 @@ gdk_window_xid_at_coords(gint x, gint y, GList *excludes)
{
if (!g_list_find(excludes,(gpointer)child))
{
XUngrabServer(disp);
XFree(list);
return child;
}
......@@ -135,11 +138,13 @@ gdk_window_xid_at_coords(gint x, gint y, GList *excludes)
else
{
XFree(list);
XUngrabServer(disp);
return child;
}
}
}
}
XUngrabServer(disp);
return root;
}
......
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