]> Dogcows Code - chaz/openbox/commitdiff
fixed the drop shadow window clearing bug in Basemenu
authorScott Moynes <smoynes@nexus.carleton.ca>
Thu, 17 Oct 2002 01:45:30 +0000 (01:45 +0000)
committerScott Moynes <smoynes@nexus.carleton.ca>
Thu, 17 Oct 2002 01:45:30 +0000 (01:45 +0000)
src/Basemenu.cc

index 25a941cb7584468f4fb217b48dfdaf198d904476..cd3dbe7f0b2d6c4e17d7243c8432a2e7e58bf442 100644 (file)
@@ -611,9 +611,13 @@ 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, text_h,
+    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)
This page took 0.02616 seconds and 4 git commands to generate.