aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/Menu.cc
diff options
context:
space:
mode:
authorsimonb <simonb>2006-04-22 17:19:53 (GMT)
committersimonb <simonb>2006-04-22 17:19:53 (GMT)
commitcfd92af2b680547d9b5176b001c03638a4a4d8d5 (patch)
treec91c162002f3834ad8c310a6549d6bb5d8872711 /src/FbTk/Menu.cc
parent11190682277e3ac14d976738576f20df04e63dc5 (diff)
downloadfluxbox-cfd92af2b680547d9b5176b001c03638a4a4d8d5.zip
fluxbox-cfd92af2b680547d9b5176b001c03638a4a4d8d5.tar.bz2
fix menu corruption when size/label changes
Diffstat (limited to 'src/FbTk/Menu.cc')
-rw-r--r--src/FbTk/Menu.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/FbTk/Menu.cc b/src/FbTk/Menu.cc
index 0616906..4775ae9 100644
--- a/src/FbTk/Menu.cc
+++ b/src/FbTk/Menu.cc
@@ -444,6 +444,9 @@ void Menu::updateMenu(int active_index) {
444 444
445 // must update main window size whether visible or not 445 // must update main window size whether visible or not
446 // the rest can wait until the end 446 // the rest can wait until the end
447 if (menu.window.width() != new_width)
448 m_need_update = true;
449
447 menu.window.resize(new_width, new_height); 450 menu.window.resize(new_width, new_height);
448 451
449 if (!isVisible()) 452 if (!isVisible())