summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2021-02-24 16:36:19 +0100
committerCarlos Garnacho <carlosg@gnome.org>2021-02-24 16:46:02 +0100
commit14e7d7a1030adbe0f19c5e4febfe3207c38cdbeb (patch)
tree6ff4bd4e3328866821756b94285217954914c5e5
parentcb77da310879f33ae745126701a0823ba52415d6 (diff)
downloadgtk+-14e7d7a1030adbe0f19c5e4febfe3207c38cdbeb.tar.gz
gdk/wayland: Make more matched settings from the portal as valid
Commit 97b5fad1315 was a forward port from a gtk3 patch, but the hunk was applied on the wrong bits of code. Ensure the initialization paths also do mark settings read from the portal as valid, so the checks for optional/newer settings actually have the expected result. It is also desirable to mark settings as valid after configuration changes (as that patch did effectively do), but not enough to fix all situations.
-rw-r--r--gdk/wayland/gdkdisplay-wayland.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdk/wayland/gdkdisplay-wayland.c b/gdk/wayland/gdkdisplay-wayland.c
index c5f9c5821e..db79ffa730 100644
--- a/gdk/wayland/gdkdisplay-wayland.c
+++ b/gdk/wayland/gdkdisplay-wayland.c
@@ -1913,6 +1913,7 @@ init_settings (GdkDisplay *display)
char *a = g_variant_print (v, FALSE);
g_debug ("Using portal setting for %s %s: %s\n", schema_str, key, a);
g_free (a);
+ entry->valid = TRUE;
apply_portal_setting (entry, v, display);
}
else