Created attachment 5480 Fix for the issue. There is a boolean that could be used without initializing, if gtk_widget_has_focus is false, and will then be checked. I attach a patch fixing it.
Released with 2.9.2 and 3.1.0