--- add_window.c-	Mon Jun  4 05:42:08 2001
+++ add_window.c	Thu Mar 18 14:34:41 2004
@@ -824,7 +824,7 @@
 				    (unsigned int) CopyFromParent,
 				    Scr->d_visual, valuemask, &attributes);
     
-    if (tmp_win->title_height)
+    if (1)
     {
 	valuemask = (CWEventMask | CWBorderPixel | CWBackPixel);
 	attributes.event_mask = (KeyPressMask | ButtonPressMask |
@@ -841,6 +841,10 @@
 					  (unsigned int) CopyFromParent,
 					  Scr->d_visual, valuemask,
 					  &attributes);
+	if (tmp_win->title_height == 0) {
+	    XDestroyWindow(dpy, tmp_win->title_w);
+	    tmp_win->title_w = 0;
+	}
     }
     else {
 	tmp_win->title_w = 0;
