<raster@redhat.com>

<raster@redhat.com>

fixed minor buglets in window tree walker.
This commit is contained in:
rhlabs 1998-03-10 06:14:59 +00:00
parent 355e74fce4
commit 4db2561dd5
9 changed files with 40 additions and 2 deletions

View File

@ -1,3 +1,7 @@
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

View File

@ -1,3 +1,7 @@
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

View File

@ -1,3 +1,7 @@
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

View File

@ -1,3 +1,7 @@
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

View File

@ -1,3 +1,7 @@
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

View File

@ -1,3 +1,7 @@
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

View File

@ -1,3 +1,7 @@
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

View File

@ -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;
}

View File

@ -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;
}