X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=debian%2Fpatches%2F102_ignore-bad-match.diff;fp=debian%2Fpatches%2F102_ignore-bad-match.diff;h=4a60cad4ee329bec341ca59740412d8690462579;hb=43f58fb1188973e1407a2f18af22813a5c03bb89;hp=0000000000000000000000000000000000000000;hpb=9cfe9a5b2a9e20291df0693d69b8f36bb27140fc;p=ion3.git diff --git a/debian/patches/102_ignore-bad-match.diff b/debian/patches/102_ignore-bad-match.diff new file mode 100644 index 0000000..4a60cad --- /dev/null +++ b/debian/patches/102_ignore-bad-match.diff @@ -0,0 +1,16 @@ +--- ion3.orig/ioncore/rootwin.c ++++ ion3/ioncore/rootwin.c +@@ -58,10 +58,11 @@ + static char msg[128], request[64], num[32]; + + /* Just ignore bad window and similar errors; makes the rest of +- * the code simpler. ++ * the code simpler. Due to a Xorg bug, window lookups may fail ++ * with BadMatch instead of BadWindow. + */ + if((ev->error_code==BadWindow || +- (ev->error_code==BadMatch && ev->request_code==X_SetInputFocus) || ++ ev->error_code==BadMatch || + (ev->error_code==BadDrawable && ev->request_code==X_GetGeometry)) && + ignore_badwindow) + return 0;