From 27e080d009076c4c7482201987af36d423a75b61 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Sun, 23 Jan 2022 08:45:21 +0800 Subject: [PATCH] * src/pgtkterm.c (pgtk_flash): Fix input blocking. --- src/pgtkterm.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/pgtkterm.c b/src/pgtkterm.c index 8073f51c610..efbeaafaf1a 100644 --- a/src/pgtkterm.c +++ b/src/pgtkterm.c @@ -3731,12 +3731,12 @@ recover_from_visible_bell (struct atimer *timer) static void pgtk_flash (struct frame *f) { - block_input (); - { if (!FRAME_CR_CONTEXT (f)) return; + block_input (); + cairo_surface_t *surface_orig = FRAME_CR_SURFACE (f); int width = FRAME_CR_SURFACE_DESIRED_WIDTH (f); @@ -3806,9 +3806,8 @@ pgtk_flash (struct frame *f) } cairo_destroy (cr); + unblock_input (); } - - unblock_input (); } /* Make audible bell. */ -- 2.39.5