]> git.eshelyaron.com Git - emacs.git/commitdiff
(x_update_window_cursor): Don't update in frames
authorGerd Moellmann <gerd@gnu.org>
Fri, 17 Mar 2000 21:12:54 +0000 (21:12 +0000)
committerGerd Moellmann <gerd@gnu.org>
Fri, 17 Mar 2000 21:12:54 +0000 (21:12 +0000)
who are in the process of being deleted.

src/ChangeLog
src/xterm.c

index 22c2c9c1061cfb7e6e5934892ac447e7d6745fa3..3b3184e47c6dd437f9f0dc81475fa2bbfadc6ce5 100644 (file)
@@ -1,3 +1,8 @@
+2000-03-17  Gerd Moellmann  <gerd@gnu.org>
+
+       * xterm.c (x_update_window_cursor): Don't update in frames
+       who are in the process of being deleted.
+
 2000-03-16  Gerd Moellmann  <gerd@gnu.org>
 
        * Makefile.in (mostlyclean): Add `*.core'.
index 1f231b37e4d676d1e1857bb30f6f96870af025a7..575461b751f33515d7a4c5f89c1e818dc0b4ec55 100644 (file)
@@ -10496,10 +10496,15 @@ x_update_window_cursor (w, on)
      struct window *w;
      int on;
 {
-  BLOCK_INPUT;
-  x_display_and_set_cursor (w, on, w->phys_cursor.hpos, w->phys_cursor.vpos,
-                           w->phys_cursor.x, w->phys_cursor.y);
-  UNBLOCK_INPUT;
+  /* Don't update cursor in windows whose frame is in the process
+     of being deleted.  */
+  if (w->current_matrix)
+    {
+      BLOCK_INPUT;
+      x_display_and_set_cursor (w, on, w->phys_cursor.hpos, w->phys_cursor.vpos,
+                               w->phys_cursor.x, w->phys_cursor.y);
+      UNBLOCK_INPUT;
+    }
 }