/* if this is the first time mapping, skip calculations */
if (prevmenu == NULL) {
XMapWindow(dpy, currmenu->win);
- goto done;
+ prevmenu = currmenu;
+ return;
}
/* find lowest common ancestor menu */
XMapWindow(dpy, menu->win);
}
-done:
prevmenu = currmenu;
}
{
int x, y;
- x = 0 + dc.font->height;
+ x = dc.font->height;
y = item->y + item->h/2 + dc.font->ascent/2 - 1;
XSetForeground(dpy, dc.gc, color[ColorFG].pixel);
XftDrawStringUtf8(menu->draw, &color[ColorFG], dc.font,