From: "Rodolfo García Peñas (kix)" <[email protected]>
The dockapps don't have title, so this code must be removed.
The title height is 0 then and the variable title_height can
be removed.
---
src/icon.c | 10 +---------
1 file changed, 1 insertion(+), 9 deletions(-)
diff --git a/src/icon.c b/src/icon.c
index a21ebed..620a1db 100644
--- a/src/icon.c
+++ b/src/icon.c
@@ -692,9 +692,7 @@ static void set_dockapp_in_icon(WIcon *icon)
{
XWindowAttributes attr;
WScreen *scr = icon->core->screen_ptr;
- int title_height = WMFontHeight(scr->icon_title_font);
unsigned int w, h, d;
- int theight = 0;
/* Reparent the dock application to the icon */
@@ -705,19 +703,13 @@ static void set_dockapp_in_icon(WIcon *icon)
/* Paint the docked application background */
XSetWindowBackgroundPixmap(dpy, icon->core->window,
scr->icon_tile_pixmap);
- /* Set extra space for title */
- if (icon->show_title && (h + title_height < wPreferences.icon_size)) {
- theight = title_height;
- drawIconTitle(scr, icon->pixmap, theight);
- }
-
/* Set the icon border */
XSetWindowBorderWidth(dpy, icon->icon_win, 0);
/* Put the dock application in the icon */
XReparentWindow(dpy, icon->icon_win, icon->core->window,
(wPreferences.icon_size - w) / 2,
- theight + (wPreferences.icon_size - h - theight) / 2);
+ (wPreferences.icon_size - h) / 2);
/* Show it and save */
XMapWindow(dpy, icon->icon_win);
--
1.7.10.4
--
To unsubscribe, send mail to [email protected].