Jailfindery / garden

Control program for DotSlashGarden
dotslashgarden.blogspot.ca
GNU General Public License v3.0
0 stars 0 forks source link

Debug: Menu render failure when a window is unmapped #7

Closed Jailfindery closed 11 years ago

Jailfindery commented 11 years ago

When a window is unmapped, menu windows below do not get updated properly. The end result is that only the menu directly under the unmapped window is only partially rendered. This part appears to be the subwindow member.

This bug only appears to affect this specific application, making it seem to be a problem with the debug_menu class and not dnc.

It should be noted that, if a menu entry is selected which does not map or unmap another window, menus become fully rendered again.

Jailfindery commented 11 years ago

As of commit 57e2d23, menu window borders no longer disappear when a window on top is unmapped. However, windows two layers deep still disappear entirely. The fix resulted from refreshing all menu window elements before prompting for user input.

Jailfindery commented 11 years ago

It was determined that, due to the way ncurses handles refreshing and menus, stacking menus in dnc will not work correctly.