fix menu corruption when size/label changes
simonb simonb
3 files changed,
7 insertions(+),
1 deletions(-)
M
ChangeLog
→
ChangeLog
@@ -1,6 +1,9 @@
(Format: Year/Month/Day) Changes for 0.9.16: *06/04/22: + * Fix workspace menu corruption when window title changes (Simon) + sf.net bug #1113668 + Menu.cc MenuItem.cc * Fix crash when toolbar disabled (Simon) Slit.hh/cc Screen.cc * Couple of memory-based fixes from valgrind (Simon)
M
src/FbTk/Menu.cc
→
src/FbTk/Menu.cc
@@ -444,6 +444,9 @@ new_height = 1;
// must update main window size whether visible or not // the rest can wait until the end + if (menu.window.width() != new_width) + m_need_update = true; + menu.window.resize(new_width, new_height); if (!isVisible())
M
src/FbTk/MenuItem.cc
→
src/FbTk/MenuItem.cc
@@ -114,7 +114,7 @@
theme.frameFont().drawText(draw, // drawable theme.screenNum(), tgc.gc(), - m_label.c_str(), m_label.size(), // text string and lenght + label().c_str(), label().size(), // text string and lenght text_x, text_y); // position }