]> git.eshelyaron.com Git - emacs.git/commitdiff
(x_delete_display): Update next_noop_dpyinfo to ensure
authorGerd Moellmann <gerd@gnu.org>
Sun, 30 Jan 2000 21:12:53 +0000 (21:12 +0000)
committerGerd Moellmann <gerd@gnu.org>
Sun, 30 Jan 2000 21:12:53 +0000 (21:12 +0000)
that XTread_socket does not crash by trying to call XNoOp on a
closed display.

src/xterm.c

index 3a1652e10d03312e487633cf368ab8462ff253d5..abea59684a89a2e4ae3fda0423ffd407194f0261 100644 (file)
@@ -13164,6 +13164,9 @@ x_delete_display (dpyinfo)
        }
     }
 
+  if (next_noop_dpyinfo == dpyinfo)
+    next_noop_dpyinfo = dpyinfo->next;
+
   if (x_display_list == dpyinfo)
     x_display_list = dpyinfo->next;
   else