cmenu: redraw the current menu after exiting the keys_handler
authorPierre-Alexandre Meyer <pierre@mouraf.org>
Mon, 7 Sep 2009 22:03:28 +0000 (15:03 -0700)
committerPierre-Alexandre Meyer <pierre@mouraf.org>
Mon, 7 Sep 2009 22:03:28 +0000 (15:03 -0700)
commit66868cb27d32f490ae3682562ddc72a09e4c8aa1
treeb854a719abeac997faf1ee813f9c9fa2f44b74ae
parent8e7362ec8fcd84b5c1c95580663bcaf210c3b4ed
cmenu: redraw the current menu after exiting the keys_handler

After exiting the keys_handler, reset_ui() is not enough since it
only resets the status line and title. The current menu needs to be redrawn.

Note: only a submenu will be redrawn, not its parents. This means that not
all the UI will be displayed after exiting the handler if invoked from whithin a
submenu. We have already this problem nowadays when exiting a submenu
of a submenu. The root parent is not redrawn, leading to some ugly states
(the background color overrides part of the root menu).
This will be fixed when we implement a real hierarchy (each submenu having
access to its parents).

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
com32/cmenu/libmenu/menu.c