1 Star 0 Fork 16

Anonymous_Z/tk

forked from src-openEuler/tk 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Fix-1821174fff-and-1938774fff-RenderBadPicture-inval.patch 1010 Bytes
一键复制 编辑 原始数据 按行查看 历史
hexiaowen 提交于 2019-09-30 11:18 . Package init
From 6b354b74b09729ef0b336a4c1504ed66824a4d5a Mon Sep 17 00:00:00 2001
From: fvogel <fvogelnew1@free.fr>
Date: Sun, 14 Jan 2018 14:54:17 +0000
Subject: [PATCH 108/693] Fix [1821174fff] and [1938774fff]: RenderBadPicture
(invalid Picture parameter) error returned on application exit when 'send'
was renamed to {}. Patch from Christian Werner.
---
unix/tkUnixRFont.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/unix/tkUnixRFont.c b/unix/tkUnixRFont.c
index d43ed2460..abdde7819 100644
--- a/unix/tkUnixRFont.c
+++ b/unix/tkUnixRFont.c
@@ -388,6 +388,16 @@ FinishedWithFont(
if (fontPtr->fontset) {
FcFontSetDestroy(fontPtr->fontset);
}
+
+ /*
+ * Synchronize with X server before dropping the error handler.
+ * This seems to catch sporadic RenderBadPicture errors on tear
+ * down of an application.
+ *
+ * See bugs [1821174fff] and [1938774fff].
+ */
+ XSync(fontPtr->display, False);
+
Tk_DeleteErrorHandler(handler);
}
--
2.19.1
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/anonymous_z/tk.git
git@gitee.com:anonymous_z/tk.git
anonymous_z
tk
tk
master

搜索帮助