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.8.3+ds-2+rpi1~3^2~20^2^2~10 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=19aa79d5117160d12e7b5ab6fdf6ab39cb004cfb;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;