]> git.decadent.org.uk Git - ion3.git/blob - debian/patches/102_ignore-bad-match.diff
Added workaround for Xorg bug in reporting deleted windows
[ion3.git] / debian / patches / 102_ignore-bad-match.diff
1 --- ion3.orig/ioncore/rootwin.c
2 +++ ion3/ioncore/rootwin.c
3 @@ -58,10 +58,11 @@
4      static char msg[128], request[64], num[32];
5      
6      /* Just ignore bad window and similar errors; makes the rest of
7 -     * the code simpler.
8 +     * the code simpler.  Due to a Xorg bug, window lookups may fail
9 +     * with BadMatch instead of BadWindow.
10       */
11      if((ev->error_code==BadWindow ||
12 -        (ev->error_code==BadMatch && ev->request_code==X_SetInputFocus) ||
13 +        ev->error_code==BadMatch ||
14          (ev->error_code==BadDrawable && ev->request_code==X_GetGeometry)) &&
15         ignore_badwindow)
16          return 0;