#2166·Handy

[BUG] [Linux] Recording overlay flickers with WebKitGTK 2.54 when DMA-BUF rendering is forcibly disabled

Author: lpoirothattermannCreated Sep 28, 2026Updated Sep 28, 2026
Labelsbug

Before You Submit

I searched existing issues for WebKitGTK 2.54, DMA-BUF, and overlay flickering, and did not find a matching report. #1806 concerns a different main-window layout problem.

Bug Description

The recording overlay appears as a tiny white rectangle containing a pink dot, with visible flickering, instead of the complete recording indicator. Dictation itself still works.

I noticed this after rebooting. Package history shows that WebKitGTK was upgraded from 2.52.5 to 2.54.0 on September 25, 2026. I have not performed a controlled comparison with the previous WebKitGTK version.

Steps to reproduce:

  1. Run Handy 0.9.7 on the system described below.
  2. Enable the recording overlay, with style Live and position Bottom.
  3. Start dictation using handy --toggle-transcription.

Expected behavior:

The complete recording indicator remains visible and stable.

Actual behavior:

Only small animated portions remain visible, usually the pink dot, while the rest disappears.

Diagnostic findings:

  • The GTK window and WebView are correctly sized at 256 × 50 pixels. The indicator’s DOM dimensions are 174 × 42 pixels.
  • A WebKit page snapshot contains the complete indicator, while the GTK widget snapshot and screen capture show the broken output.
  • Handy unconditionally sets WEBKIT_DISABLE_DMABUF_RENDERER=1 in src-tauri/src/main.rs, overriding an externally supplied value of 0.
  • A temporary local LD_PRELOAD shim that prevents this override restores the complete indicator. This was verified across repeated openings.

Allowing users to explicitly override this environment variable could provide a workaround. The exact underlying WebKit defect remains unconfirmed; no standalone WebKit reproducer has been tested.

System Information

App Version:

Handy 0.9.7, native RPM (handy-0.9.7-1.x86_64).

Operating System:

Fedora Linux 44 Sway Spin, currently running Niri 26.04 on Wayland.

CPU:

AMD Ryzen 5 PRO 7540U.

GPU:

AMD Radeon 740M integrated graphics, Phoenix.

Relevant libraries:

  • WebKitGTK: 2.54.0-2.fc44, API 4.1
  • GTK: 3.24.52
  • gtk-layer-shell: 0.10.0

Logs

The following excerpts come from a temporary local diagnostic probe, not standard Handy logs.

Without the workaround:

HANDY_PROBE widget GtkApplicationWindow x=0 y=0 width=256 height=50 mapped=1
HANDY_PROBE widget WebKitWebView x=0 y=0 width=256 height=50 mapped=1
HANDY_PROBE hardware-policy 2

With the workaround:

HANDY_PROBE overriding forced DMABUF disable
HANDY_PROBE hardware-policy 1

Policy 2 corresponds to NEVER; policy 1 corresponds to ALWAYS.