Skip to content

UI freezes after clicking any input field - cc-switch

Quick fix

Set WEBKIT_DISABLE_COMPOSITING_MODE=1 or upgrade to v3.14.1 and enable the native title bar to fix Linux UI freezes and unresponsive buttons.

Error output
这个环境下,点击任意的输入框都会卡死,但点击仍然能感觉有按钮反馈(看鼠标图标的话),但视窗不会有任何变化
English translation

In this environment, clicking any input field freezes the UI. Clicks still appear to produce button feedback based on the mouse cursor, but the window does not change.

Tauri webview has focus acquisition and rendering problems on Linux. WebKitGTK 2.40+ has known rendering and input defects that can freeze the UI after clicking an input field. In addition, the GTK surface input region is not renegotiated when the window is shown, causing title bar and window decoration areas to lose focus and stop responding to mouse events.

  1. Before launching the app, set the environment variable to disable WebKitGTK compositing mode: export WEBKIT_DISABLE_COMPOSITING_MODE=1. If that does not work, also try export WEBKIT_DISABLE_DMABUF_RENDERER=1, or run both together: WEBKIT_DISABLE_COMPOSITING_MODE=1 WEBKIT_DISABLE_DMABUF_RENDERER=1 ./cc-switch.

  2. For unclickable title bar buttons, upgrade to v3.14.1 and enable “Enable app-level window buttons” (native title bar option) in the app.

Toolcc-switch
Version3.8.2 - 3.13.0 (受影响版本),v3.14.1 修复了标题栏问题
PlatformsLinux
What if the UI still freezes after setting the environment variable?
Try setting both environment variables together: WEBKIT_DISABLE_COMPOSITING_MODE=1 WEBKIT_DISABLE_DMABUF_RENDERER=1 ./cc-switch. If it still fails, temporarily use the cc-switch CLI version.
Title bar buttons are still unclickable after upgrading to v3.13.0?
The v3.13.0 fix does not fully resolve this issue. Upgrade to v3.14.1 and enable the “Enable app-level window buttons” option in the app.

This is an unofficial community wiki with no affiliation to the cc-switch authors or the project itself. Its content is compiled from the project's public GitHub issues. This site distributes no software.