]> git.eshelyaron.com Git - emacs.git/commitdiff
(set_window_buffer): Use BLOCK_INPUT.
authorChong Yidong <cyd@stupidchicken.com>
Sat, 25 Nov 2006 04:18:11 +0000 (04:18 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Sat, 25 Nov 2006 04:18:11 +0000 (04:18 +0000)
src/window.c

index 12159dd8af7b9ffe9d69c3b11f5284d582dba35d..f1a0cb55072e8c4050a68f5dc3d18d34fad1b630 100644 (file)
@@ -3351,8 +3351,10 @@ set_window_buffer (window, buffer, run_hooks_p, keep_margins_p)
     }
 
 #ifdef HAVE_WINDOW_SYSTEM
+  BLOCK_INPUT;
   if (dpyinfo && EQ (window, dpyinfo->mouse_face_window))
     clear_mouse_face (dpyinfo);
+  UNBLOCK_INPUT;
 #endif
 
   unbind_to (count, Qnil);