From 5e08a23f6ca77586aa8662ed19d2a6282848e10f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Mon, 25 Jul 2016 22:04:22 +0200 Subject: 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 --- src/fluxbox.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) { return; s_seenMenus.push_back(menu); menu->reconfigure(); - for (size_t i = 0; i < menu->numberOfItems(); ++i) + for (size_t i = 0; i < menu->numberOfItems(); ++i) { rec_reconfigMenu(menu->find(i)->submenu()); + if (menu->find(i)->submenu() && menu->find(i)->submenu()->isVisible()) + menu->drawSubmenu(i); + } } -- cgit v0.11.2