aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Lübking <thomas.luebking@gmail.com>2016-07-25 20:04:22 (GMT)
committerMathias Gumz <akira@fluxbox.org>2016-07-30 16:22:49 (GMT)
commit5e08a23f6ca77586aa8662ed19d2a6282848e10f (patch)
tree91cf24087a5df028020120245ef7430e969617f7
parentbccb185cd9e4efd1db2e5244ba1a1956f750f9cd (diff)
downloadfluxbox-5e08a23f6ca77586aa8662ed19d2a6282848e10f.zip
fluxbox-5e08a23f6ca77586aa8662ed19d2a6282848e10f.tar.bz2
reposition visible submenus when changing style
a fixed position of the style menu won't help (the menu geometry changes *because* the item geometries do) - warping the pointer would likely be possible, but warping the pointer is cc. "evil" BUG: 715
-rw-r--r--src/fluxbox.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/fluxbox.cc b/src/fluxbox.cc
index 3907d29..0eea6c2 100644
--- a/src/fluxbox.cc
+++ b/src/fluxbox.cc
@@ -1269,8 +1269,11 @@ static void rec_reconfigMenu(FbTk::Menu *menu) {
1269 return; 1269 return;
1270 s_seenMenus.push_back(menu); 1270 s_seenMenus.push_back(menu);
1271 menu->reconfigure(); 1271 menu->reconfigure();
1272 for (size_t i = 0; i < menu->numberOfItems(); ++i) 1272 for (size_t i = 0; i < menu->numberOfItems(); ++i) {
1273 rec_reconfigMenu(menu->find(i)->submenu()); 1273 rec_reconfigMenu(menu->find(i)->submenu());
1274 if (menu->find(i)->submenu() && menu->find(i)->submenu()->isVisible())
1275 menu->drawSubmenu(i);
1276 }
1274} 1277}
1275 1278
1276 1279