From cb3045bf385101bbc3591453088d8a5f2c506396 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Tyrychtr?= Date: Thu, 15 Jun 2023 09:06:30 +0200 Subject: [PATCH] gtkatspicomponent: Don't return unitialized stack data as screen positions of widgets We can not compute the correct value, but that does not mean we should return basically random values from an unitialized stack space. Rather than that behavior, return zeros concistently. --- gtk/a11y/gtkatspicomponent.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gtk/a11y/gtkatspicomponent.c b/gtk/a11y/gtkatspicomponent.c index beb65a89f5..30bb676c50 100644 --- a/gtk/a11y/gtkatspicomponent.c +++ b/gtk/a11y/gtkatspicomponent.c @@ -87,6 +87,8 @@ translate_coordinates_from_widget (GtkWidget *widget, { 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: