projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6a4766
)
Fix crash when loading Postscript images
author
Po Lu
<luangruo@yahoo.com>
Mon, 30 May 2022 01:07:27 +0000
(09:07 +0800)
committer
Po Lu
<luangruo@yahoo.com>
Mon, 30 May 2022 01:07:27 +0000
(09:07 +0800)
* src/xterm.c (handle_one_xevent): Catch errors around
`x_kill_gs_process'.
src/xterm.c
patch
|
blob
|
history
diff --git
a/src/xterm.c
b/src/xterm.c
index ab36c1681a8804c33f6fc2627f41d31d84b088ed..996e19492608da2625879e718d1d9f5e0fb67525 100644
(file)
--- a/
src/xterm.c
+++ b/
src/xterm.c
@@
-15260,7
+15260,11
@@
handle_one_xevent (struct x_display_info *dpyinfo,
goto OTHER;
#ifndef USE_CAIRO
Pixmap pixmap = (Pixmap) event->xclient.data.l[1];
+ /* FIXME: why does this sometimes generate a BadMatch
+ error? */
+ x_catch_errors (dpyinfo->display);
x_kill_gs_process (pixmap, f);
+ x_uncatch_errors ();
expose_frame (f, 0, 0, 0, 0);
#endif /* !USE_CAIRO */
goto done;