win32: Don't save/restore the context for querying the font

Use the font in the current state.
This commit is contained in:
Benjamin Otte 2020-01-21 12:48:20 +01:00
parent 193eb5b0dd
commit d59784f7c7

View File

@ -924,13 +924,10 @@ gtk_im_context_ime_set_preedit_font (GtkIMContext *context)
}
style = gtk_widget_get_style_context (widget);
gtk_style_context_save (style);
gtk_style_context_set_state (style, GTK_STATE_FLAG_NORMAL);
gtk_style_context_get (style,
"font",
&font_desc,
NULL);
gtk_style_context_restore (style);
if (lang[0])
{