improved algorithm for mapping/unmapping
authorphillbush <phillbush@cock.li>
Sat, 16 May 2020 17:43:07 +0000 (14:43 -0300)
committerphillbush <phillbush@cock.li>
Sat, 16 May 2020 17:43:07 +0000 (14:43 -0300)
commitd8a7caf2e364df7b00149204f3cdd49eb48851ed
treeb4066e0321b61330be06646f5e63c9980e2de4ce
parentd888f2cae40da5ebfe6014040908e363b0af9426
improved algorithm for mapping/unmapping

In previous versions, all the previous current visible menus are
unmapped and the new currently visible menus are mapped when the
current visible menu changed. Now, using an algorithm that finds
the lowest common ancestor between current and current_new menus,
only the necessary menus are remapped on the display.
xmenu.c