diff src/glyphs-x.c @ 914:44e6e64b1cf2

[xemacs-hg @ 2002-07-10 03:54:43 by stephent] correct subwindow (un)mapping <170e9b58-0fab-45ca-af95-baf53a643dec@deisui.org>
author stephent
date Wed, 10 Jul 2002 03:54:45 +0000
parents 79c6ff3eef26
children 79fb6b9e9f76
line wrap: on
line diff
--- a/src/glyphs-x.c	Tue Jul 09 11:58:30 2002 +0000
+++ b/src/glyphs-x.c	Wed Jul 10 03:54:45 2002 +0000
@@ -2028,6 +2028,9 @@
       XUnmapWindow
 	(IMAGE_INSTANCE_X_SUBWINDOW_DISPLAY (p),
 	 IMAGE_INSTANCE_X_CLIPWINDOW (p));
+      XUnmapSubwindows
+	(IMAGE_INSTANCE_X_SUBWINDOW_DISPLAY (p),
+	 IMAGE_INSTANCE_X_CLIPWINDOW (p));
     }
   else				/* must be a widget */
     {
@@ -2057,8 +2060,12 @@
       XMoveWindow (IMAGE_INSTANCE_X_SUBWINDOW_DISPLAY (p),
 		   subwindow, -dga->xoffset, -dga->yoffset);
       if (!IMAGE_INSTANCE_SUBWINDOW_DISPLAYEDP (p))
-	XMapWindow (IMAGE_INSTANCE_X_SUBWINDOW_DISPLAY (p),
-		    IMAGE_INSTANCE_X_CLIPWINDOW (p));
+	{
+	  XMapWindow (IMAGE_INSTANCE_X_SUBWINDOW_DISPLAY (p),
+		      IMAGE_INSTANCE_X_CLIPWINDOW (p));
+	  XMapSubwindows (IMAGE_INSTANCE_X_SUBWINDOW_DISPLAY (p),
+			  IMAGE_INSTANCE_X_CLIPWINDOW (p));
+	}
     }
   else				/* must be a widget */
     {