all repos — fluxbox @ cfd92af2b680547d9b5176b001c03638a4a4d8d5

custom fork of the fluxbox windowmanager

fix menu corruption when size/label changes
simonb simonb
commit

cfd92af2b680547d9b5176b001c03638a4a4d8d5

parent

11190682277e3ac14d976738576f20df04e63dc5

3 files changed, 7 insertions(+), 1 deletions(-)

jump to
M ChangeLogChangeLog

@@ -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.ccsrc/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.ccsrc/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 }