]> code.delx.au - gnu-emacs/commitdiff
Fixes: debbugs:19660
authorJan D <jan.h.d@swipnet.se>
Sat, 24 Jan 2015 09:57:21 +0000 (10:57 +0100)
committerJan D <jan.h.d@swipnet.se>
Sat, 24 Jan 2015 09:57:21 +0000 (10:57 +0100)
* nsterm.m (drawRect:): Add block/unblock_input.

src/ChangeLog
src/nsterm.m

index 43e56416e578164b9e5316d2ca42fd4331658e98..9cf5eb591bbcc588b43f0e6907926c9e4cce6eb2 100644 (file)
@@ -1,3 +1,7 @@
+2015-01-24  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * nsterm.m (drawRect:): Add block/unblock_input (Bug#19660).
+
 2015-01-21  Paul Eggert  <eggert@cs.ucla.edu>
 
        Fix coding.c subscript error
index 24770f6dd10e8f9afd639fef51062dbd8e3f571d..08b8e3a90760fb8cc57d18845b74d1c2b167fdb6 100644 (file)
@@ -6750,7 +6750,9 @@ if (cols > 0 && rows > 0)
     return;
 
   ns_clear_frame_area (emacsframe, x, y, width, height);
+  block_input ();
   expose_frame (emacsframe, x, y, width, height);
+  unblock_input ();
 
   /*
     drawRect: may be called (at least in OS X 10.5) for invisible