From fe56f3413afd4a17cc5a8e16f954936afe2af427 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 26 Nov 2022 21:53:33 -0500 Subject: [PATCH] Don't emit ::notify from a getter GdkX11Keymap ddetermines the direction of the keymap on demand, and was emitting notify::direction --- gdk/x11/gdkkeys-x11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdk/x11/gdkkeys-x11.c b/gdk/x11/gdkkeys-x11.c index 9047357836..ec62601014 100644 --- a/gdk/x11/gdkkeys-x11.c +++ b/gdk/x11/gdkkeys-x11.c @@ -603,7 +603,7 @@ update_direction (GdkX11Keymap *keymap_x11, keymap_x11->have_direction = TRUE; } - if (!had_direction || old_direction != keymap_x11->current_direction) + if (had_direction && old_direction != keymap_x11->current_direction) { g_object_notify (G_OBJECT (keyboard), "direction"); return TRUE;