提交 d5c4864e 编写于 作者: U uta

8003898: X11 toolkit can be chosen as the default toolkit

Summary: XToolkit is not selected for any values of system-wide environment variables (ex. DISPLAY).
Reviewed-by: anthony, art
上级 abe3bb26
......@@ -129,10 +129,6 @@ static bool isInAquaSession() {
return true;
}
static bool isXDisplayDefined() {
return getenv("DISPLAY") != NULL;
}
PreferredToolkit getPreferredToolkit() {
static PreferredToolkit pref = unset;
if (pref != unset) return pref;
......@@ -141,7 +137,6 @@ PreferredToolkit getPreferredToolkit() {
if (prefFromEnv != unset) return pref = prefFromEnv;
if (isInAquaSession()) return pref = CToolkit;
if (isXDisplayDefined()) return pref = XToolkit;
return pref = HToolkit;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册