#1029791 yad: Assumes GTK always uses X11

Package:
yad
Source:
yad
Description:
tool for creating graphical dialogs from shell scripts
Submitter:
Simon McVittie
Date:
2026-01-10 11:15:23 UTC
Severity:
normal
#1029791#5
Date:
2023-01-27 20:39:19 UTC
From:
To:
To reproduce:

* GNOME in Wayland mode
* Run: yad --question (or probably any other options)

Expected result: no critical warnings

Actual result:

(yad:315819): Gdk-CRITICAL **: 20:37:42.045: gdk_x11_window_get_xid: assertion 'GDK_IS_X11_WINDOW (window)' failed

This might be related to #926736 which describes a feature that doesn't
work in Wayland.

#1029791#10
Date:
2025-12-03 12:07:33 UTC
From:
To:
Simon, are you still able to reproduce this bug? This test case is
working for me now.

Thank you,
Jeremy Bícha

#1029791#15
Date:
2025-12-03 13:00:09 UTC
From:
To:
should be close to vanilla, in each case). An exact command-line to
reproduce it is for example

yad --question --text 'Yes?'

Note that yad still runs, apparently successfully: it is the critical
warning (which is a sign that yad or a library it uses is making
assumptions about the GDK backend) that I reported as a bug.

More specifically,
https://sources.debian.org/src/yad/0.40.0-1.1/src/main.c#L939 assumes
that the backend is X11.

     smcv

#1029791#20
Date:
2026-01-10 10:08:33 UTC
From:
To:
Es gibt eine Familienspende in Höhe von 1.850.000,00 USD von Cheng Charlie
Saephan. Bitte antworten Sie für weitere Informationen. Denken Sie daran,
Ihrer Familie und den Bedürftigen in Ihrer Umgebung Gutes zu tun.

Dies ist bereits der zweite Versuch, Sie zu erreichen. Bitte antworten Sie
für weitere Details.