diff options
author | Ross Burton <ross@debian.org> | 2004-12-21 10:35:58 +0000 |
---|---|---|
committer | Ross Burton <ross@debian.org> | 2004-12-21 10:35:58 +0000 |
commit | 1a1d4a8c606b55bf2d2695e60f1ac851d3698303 (patch) | |
tree | 8fd7dac7964b7495b270f9b87fed7ec40a127c11 /debian/patches | |
parent | Updated stale GNOME 2.6/2.7 watch files. (diff) | |
download | zenity-1a1d4a8c606b55bf2d2695e60f1ac851d3698303.tar.gz zenity-1a1d4a8c606b55bf2d2695e60f1ac851d3698303.tar.bz2 zenity-1a1d4a8c606b55bf2d2695e60f1ac851d3698303.zip |
Add patch to fix invalid window IDs
Diffstat (limited to 'debian/patches')
-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; + } |