]> Dogcows Code - chaz/openbox/blobdiff - src/Basemenu.cc
fixed the drop shadow window clearing bug in Basemenu
[chaz/openbox] / src / Basemenu.cc
index 322576c598d70270d135a53dea4a5107456b80f4..cd3dbe7f0b2d6c4e17d7243c8432a2e7e58bf442 100644 (file)
@@ -447,6 +447,7 @@ void Basemenu::redrawTitle(void) {
     break;
   }
 
+  XClearWindow(display, menu.title);
   style->t_font->drawString(menu.title, dx, menu.bevel_w,
                             style->t_text, text);
 }
@@ -610,6 +611,14 @@ void Basemenu::drawItem(int index, bool highlight, bool clear,
       dooppsel = False;
   }
 
+#ifdef    XFT
+  if (dotext)
+    XClearArea(display, menu.frame, text_x, text_y , 
+               text_w + style->f_font->offset(), 
+               text_h + style->f_font->offset(),
+               False);
+#endif // XFT
+
   if (dohilite && highlight && (menu.hilite_pixmap != ParentRelative)) {
     if (menu.hilite_pixmap)
       XCopyArea(display, menu.hilite_pixmap, menu.frame,
This page took 0.023502 seconds and 4 git commands to generate.