Contents in 1999-06-04-13 of release-21-2.
[chise/xemacs-chise.git.1] / src / window.h
index 41cc210..5bcfea6 100644 (file)
@@ -28,7 +28,9 @@ Boston, MA 02111-1307, USA.  */
 #define _XEMACS_WINDOW_H_
 
 #include "redisplay.h"
+#ifdef HAVE_SCROLLBARS
 #include "scrollbar.h"
+#endif
 
 /* All windows in use are arranged into a tree, with pointers up and down.
 
@@ -143,8 +145,14 @@ struct window
   face_cachel_dynarr *face_cachels;
   /* glyph cache elements correct for this window and its current buffer */
   glyph_cachel_dynarr *glyph_cachels;
-
-
+  /* we cannot have a per-device cache of widgets / subwindows because
+     each visible instance needs to be a separate instance. The lowest
+     level of granularity we can get easily is the window that the
+     subwindow is in. This will fail if we attach the same subwindow
+     twice to a buffer. However, we are quite unlikely to do this,
+     especially with buttons which will need individual callbacks. The
+     proper solution is probably not worth the effort. */
+  Lisp_Object subwindow_instance_cache;
   /* List of starting positions for display lines.  Only valid if
      buffer has not changed. */
   line_start_cache_dynarr *line_start_cache;