projects
/
xmenu
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c6d9174
)
removed a goto
author
phillbush
<phillbush@cock.li>
Wed, 27 May 2020 18:10:53 +0000
(15:10 -0300)
committer
phillbush
<phillbush@cock.li>
Wed, 27 May 2020 18:10:53 +0000
(15:10 -0300)
xmenu.c
patch
|
blob
|
blame
|
history
diff --git
a/xmenu.c
b/xmenu.c
index
116f31d
..
5b41cb0
100644
(file)
--- a/
xmenu.c
+++ b/
xmenu.c
@@
-555,7
+555,8
@@
mapmenu(struct Menu *currmenu)
/* if this is the first time mapping, skip calculations */
if (prevmenu == NULL) {
XMapWindow(dpy, currmenu->win);
/* 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 */
}
/* find lowest common ancestor menu */
@@
-587,7
+588,6
@@
mapmenu(struct Menu *currmenu)
XMapWindow(dpy, menu->win);
}
XMapWindow(dpy, menu->win);
}
-done:
prevmenu = currmenu;
}
prevmenu = currmenu;
}
@@
-611,7
+611,7
@@
drawitem(struct Menu *menu, struct Item *item, XftColor *color)
{
int x, y;
{
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,
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,