diff options
Diffstat (limited to 'debian/patches/window-valid.diff')
-rw-r--r-- | debian/patches/window-valid.diff | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/debian/patches/window-valid.diff b/debian/patches/window-valid.diff new file mode 100644 index 00000000..6f6b0fd1 --- /dev/null +++ b/debian/patches/window-valid.diff @@ -0,0 +1,25 @@ +=================================================================== +RCS file: /cvs/gnome/zenity/src/util.c,v +retrieving revision 1.14 +retrieving revision 1.15 +diff -u -r1.14 -r1.15 +--- util.c 2004/10/05 03:44:52 1.14 ++++ util.c 2004/11/23 10:08:50 1.15 +@@ -272,8 +272,16 @@ + if (wid_str) { + char *wid_str_end; + Window wid = strtoul (wid_str, &wid_str_end, 10); +- if (*wid_str != '\0' && *wid_str_end == '\0' && wid != 0) ++ if (*wid_str != '\0' && *wid_str_end == '\0' && wid != 0) { ++ XWindowAttributes attrs; ++ gdk_error_trap_push (); ++ XGetWindowAttributes (GDK_DISPLAY(), wid, &attrs); ++ gdk_flush(); ++ if (gdk_error_trap_pop () != 0) { ++ return None; ++ } + return wid; ++ } + } + return None; + } |