]> asedeno.scripts.mit.edu Git - PuTTY.git/commit - Recipe
Ignore X11 BadMatch errors during cut buffer setup.
authorSimon Tatham <anakin@pobox.com>
Sun, 20 Mar 2016 18:16:43 +0000 (18:16 +0000)
committerSimon Tatham <anakin@pobox.com>
Sun, 20 Mar 2016 18:30:03 +0000 (18:30 +0000)
commit36ddc57084e461ce2377c9f7e79aad0dd8f9d85e
tree06764148c60e054ffcbb5c7817d745a0063eaedf
parentca687005701304bf3b55670e0057a313411ef38b
Ignore X11 BadMatch errors during cut buffer setup.

This is quite a pain, since it involves inventing an entire new piece
of infrastructure to install a custom Xlib error handler and give it a
queue of things to do. But it fixes a bug in which Unix pterm/PuTTY
crash out at startup if one of the root window's CUT_BUFFERn
properties contains something of a type other than STRING - in
particular, UTF8_STRING is not unheard-of.

For example, run
  xprop -root -format CUT_BUFFER3 8u -set CUT_BUFFER3 "thingy"
and then pterm without this fix would have crashed.
Recipe
unix/gtkwin.c
unix/x11misc.c [new file with mode: 0644]
unix/x11misc.h [new file with mode: 0644]