emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Po Lu
Subject: master 27e080d009: * src/pgtkterm.c (pgtk_flash): Fix input blocking.
Date: Sat, 22 Jan 2022 19:46:36 -0500 (EST)

branch: master
commit 27e080d009076c4c7482201987af36d423a75b61
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    * 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 8073f51c61..efbeaafaf1 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.  */



reply via email to

[Prev in Thread] Current Thread [Next in Thread]