(x_display_list): New variable.
authorAndrew Innes <andrewi@gnu.org>
Thu, 26 Jul 2001 10:06:32 +0000 (10:06 +0000)
committerAndrew Innes <andrewi@gnu.org>
Thu, 26 Jul 2001 10:06:32 +0000 (10:06 +0000)
(w32_term_init): Set it.

src/ChangeLog
src/w32term.c

index c08e41b..e359ccf 100644 (file)
@@ -1,3 +1,10 @@
+2001-07-26  Andrew Innes  <andrewi@gnu.org>
+
+       * w32term.c (x_display_list): New variable.
+       (w32_term_init): Set it.
+
+       * w32term.h (x_display_list): New extern.
+
 2001-07-26  Gerd Moellmann  <gerd@gnu.org>
 
        * xdisp.c (resize_mini_window): Give up when inhibit-redisplay
index 2c9110f..085d1e2 100644 (file)
@@ -192,6 +192,7 @@ extern Lisp_Object Vwindow_system;
 \f
 /* This is display since w32 does not support multiple ones.  */
 struct w32_display_info one_w32_display_info;
+struct w32_display_info *x_display_list;
 
 /* This is a list of cons cells, each of the form (NAME . FONT-LIST-CACHE),
    one for each element of w32_display_list and in the same order.
@@ -10196,6 +10197,10 @@ w32_term_init (display_name, xrm_option, resource_name)
   w32_initialize_display_info (display_name);
 
   dpyinfo = &one_w32_display_info;
+
+  /* Put this display on the chain.  */
+  dpyinfo->next = x_display_list;
+  x_display_list = dpyinfo;
   
   hdc = GetDC (GetDesktopWindow ());