text: Prevent unexpected notify::direction emissions
authorMatthias Clasen <mclasen@redhat.com>
Fri, 25 Nov 2022 12:59:35 +0000 (07:59 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 14 Dec 2022 16:28:19 +0000 (11:28 -0500)
commit9f4baac5a20b16ed12aacf79c2c2eebb5ace45f3
treedbc772a11b7034d7e247dc3ff4d607396500323f
parentaabae9248269a01f105378da60ac7d3258460c88
text: Prevent unexpected notify::direction emissions

Calling gdk_device_get_direction can trigger a
notify::direction emissions, since the X11 backend
determines the direction on demand. Prevent that by
forcing the direction to be determined ahead of time.

Fixes: #5311
gtk/gtktext.c