From 6161fc21303bdff5e493e29dbaecd7dcfd1a984e Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Sat, 8 Mar 2008 10:04:20 +0100 Subject: [PATCH] Fix regression, set selected_item_is_drawn to True when selected has been drawn. --- awesome-menu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/awesome-menu.c b/awesome-menu.c index 2df9da8f..2048953b 100644 --- a/awesome-menu.c +++ b/awesome-menu.c @@ -266,13 +266,14 @@ redraw(void) for(item = globalconf.items; item && geometry.width > 0; item = item->next) if(item->match) { + if(item == globalconf.item_selected) + selected_item_is_drawn = True; draw_item(item, geometry); len = MARGIN + draw_textwidth(globalconf.display, globalconf.font, item->data); geometry.x += len; geometry.width -= len; } - /* we have an item selected but not drawn, so redraw in the other side */ if(globalconf.item_selected && !selected_item_is_drawn) {