From: Matthias Clasen Date: Sun, 27 Nov 2022 02:53:33 +0000 (-0500) Subject: Don't emit ::notify from a getter X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~9^2~70^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=fe56f3413afd4a17cc5a8e16f954936afe2af427;p=gtk4.git Don't emit ::notify from a getter GdkX11Keymap ddetermines the direction of the keymap on demand, and was emitting notify::direction --- 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;