Remove code duplication in winmenu.c
commita5eb4910e45d54140c41ee752943da48390e900b
authorRodolfo García Peñas (kix) <kix@kix.es>
Sat, 23 Jun 2012 11:05:30 +0000 (23 13:05 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Sat, 23 Jun 2012 13:39:20 +0000 (23 14:39 +0100)
treef57c5befd06c14f7dccd9192472b71e537e53c2d
parentb6ced4fa5d291b94eb10170860fd8e22dc29c157
Remove code duplication in winmenu.c

There are some code duplication in winmenu.c. Two new functions,

- open_window_menu_core
- prepare_menu_position

Join the common code and then the duplicated code can be removed.
src/winmenu.c