FIX: set WEBKIT_DISABLE_COMPOSITING_MODE=1 for linux gtk

Change-Id: I8a500585ca815948bab1210578ba5c45858ed78e
Jira: STUDIO-5199
This commit is contained in:
chunmao.guo 2023-12-20 16:03:27 +08:00 committed by Lane.Wei
parent 818416d081
commit eaf5748742

View File

@ -889,6 +889,8 @@ int CLI::run(int argc, char **argv)
// instruct the window manager to fall back to X server mode. // instruct the window manager to fall back to X server mode.
::setenv("GDK_BACKEND", "x11", /* replace */ true); ::setenv("GDK_BACKEND", "x11", /* replace */ true);
::setenv("WEBKIT_DISABLE_COMPOSITING_MODE", "1", /* replace */ false);
// Also on Linux, we need to tell Xlib that we will be using threads, // Also on Linux, we need to tell Xlib that we will be using threads,
// lest we crash when we fire up GStreamer. // lest we crash when we fire up GStreamer.
XInitThreads(); XInitThreads();