From: Matthias Clasen Date: Mon, 19 Jun 2023 20:41:20 +0000 (-0400) Subject: Give up on warning ATs into submission X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~1^2~121^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=c2fda63b0dca162ca4bc0ab2e0dd333f40fbdba8;p=gtk4.git Give up on warning ATs into submission Its been more than a decade since Wayland has not supported screen coordinates. Clearly spamming every apps stderr with warnings is never going to make ATs stop asking for screen coordinates. Just give up. Go home --- diff --git a/gtk/a11y/gtkatspicomponent.c b/gtk/a11y/gtkatspicomponent.c index 30bb676c50..722ca16cec 100644 --- a/gtk/a11y/gtkatspicomponent.c +++ b/gtk/a11y/gtkatspicomponent.c @@ -50,7 +50,8 @@ translate_coordinates_to_widget (GtkWidget *widget, switch (coordtype) { case ATSPI_COORD_TYPE_SCREEN: - g_warning ("Screen coordinates not supported, reported positions will be wrong"); + *xo = 0; + *yo = 0; return; case ATSPI_COORD_TYPE_WINDOW: @@ -86,7 +87,6 @@ translate_coordinates_from_widget (GtkWidget *widget, switch (coordtype) { case ATSPI_COORD_TYPE_SCREEN: - g_warning ("Screen coordinates not supported, reported positions will be wrong"); *xo = 0; *yo = 0; return;