Disable DMABUF and Compositing for xwidget

Webkit does not support DMABUF or accelerated compositing in the
offscreen widgets Emacs uses for xwidget.  Disable both for non-pgtk
GTK3 builds (Bug#80834).
* src/xterm.c (init_xterm): Set WEBKIT_DISABLE_DMABUF_RENDERER and
WEBKIT_DISABLE_COMPOSITING_MODE when built with xwidgets and not pgtk.

Copyright-paperwork-exempt: yes
This commit is contained in:
Dirk-Jan C. Binnema 2026-06-13 09:47:01 +03:00 committed by Eli Zaretskii
parent 2c5b4911b3
commit def15c1b97

View file

@ -32364,6 +32364,13 @@ static struct textconv_interface text_conversion_interface =
void
init_xterm (void)
{
#if defined(HAVE_XWIDGETS) && !defined(HAVE_PGTK)
/* Emacs uses off-screen gtk widgets for webkit views, which do not support
DMABUF or Compositing Mode; webkit aborts unless we disable those. */
xputenv ("WEBKIT_DISABLE_DMABUF_RENDERER=1");
xputenv ("WEBKIT_DISABLE_COMPOSITING_MODE=1");
#endif
#ifndef HAVE_XINPUT2
/* Emacs can handle only core input events when built without XI2
support, so make sure Gtk doesn't use Xinput or Xinput2