diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2022-03-30 14:52:40 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2022-03-30 14:58:57 -0700 |
commit | 6edde492d901a7f8ae071580bb06f1851a631387 (patch) | |
tree | bced59c6a1cc2d88cd051ad4368d84b63056b0a7 /src/gtk_fb.c | |
parent | 7f21f754609495d26579ec73f954cfcf8ef228be (diff) |
glimmer: suppress re-rebuild from focus-out-event
When rebuilding the settings, an unnecessary focus-out-event is
produced that we don't want to queue another rebuild from.
In order to suppress the re-queueing of another rebuild, which
produces a sort of perpetual endless rebuild situation, use a
global flag for suppressing the rebuild queuing from the
focus-out-event callback. The rebuild code sets this flag during
the rebuild, and the callback will skip queueing a rebuild when
it's true.
There's probably a more elegant solution, but I didn't see a
convenient way to suppress the focus events temporarily via
gtk/glib for the duration of the rebuild.
This works for now, and fixes the CPU burning behavior observed
on activated GtkEntry settings boxes.
Diffstat (limited to 'src/gtk_fb.c')
0 files changed, 0 insertions, 0 deletions