Give up on warning ATs into submission
authorMatthias Clasen <mclasen@redhat.com>
Mon, 19 Jun 2023 20:41:20 +0000 (16:41 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 19 Jun 2023 20:41:20 +0000 (16:41 -0400)
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

index 30bb676c505279d473fab095a1ad2e55e59f9e1e..722ca16cec43a70e20f754b2a8af56dbb97f99fc 100644 (file)
@@ -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;