1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-04-21 13:31:37 -07:00

* src/pgtkterm.c (pgtk_flash): Fix input blocking.

This commit is contained in:
Po Lu 2022-01-23 08:45:21 +08:00
parent 7922131bb2
commit 27e080d009

View file

@ -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. */