summaryrefslogtreecommitdiff
path: root/src/menus.c
diff options
context:
space:
mode:
authorMichael Jennings <mej@kainx.org>2001-01-10 21:07:11 +0000
committerMichael Jennings <mej@kainx.org>2001-01-10 21:07:11 +0000
commitf5b30dedad54b75cbd4d40e03e211120da574f9d (patch)
tree5d2076677d0a5826cc118501fb39f723ba54ee14 /src/menus.c
parent327208592447d50fc5df3ec34d911d559b2b02eb (diff)
downloadeterm-f5b30dedad54b75cbd4d40e03e211120da574f9d.tar.gz
Wed Jan 10 12:58:31 PST 2001 Michael Jennings <mej@eterm.org>
Added a spec file for Linux-Mandrake which was contributed (ages ago) by Joakim Bodin <bodin@dreamhosted.com>. I don't plan on maintaining this, so I hope he does. :-) Also applied a menu change which I am hoping will fix an infinite recursion bug in the menu system pointed out on SourceForge by Jonathan S. Keim <jonkeim@princeton.edu>. SVN revision: 4108
Diffstat (limited to 'src/menus.c')
-rw-r--r--src/menus.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/menus.c b/src/menus.c
index 2730ec1..15ffc95 100644
--- a/src/menus.c
+++ b/src/menus.c
@@ -1019,6 +1019,9 @@ menu_draw(menu_t *menu)
for (i = menu_list->nummenus - 1; i >= 0; i--) {
menu_t *tmp = menu_list->menus[i];
+ if (tmp == menu) {
+ continue;
+ }
D_MENU((" -> Checking menu \"%s\" to see if it needs to be moved.\n", tmp->title));
if (tmp->state & MENU_STATE_IS_MAPPED) {
menu_move(tmp, tmp->x + dx, tmp->y + dy);