From c2fda63b0dca162ca4bc0ab2e0dd333f40fbdba8 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 19 Jun 2023 16:41:20 -0400 Subject: [PATCH] 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 --- gtk/a11y/gtkatspicomponent.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.30.2