all repos — fluxbox @ b470256cf6d2fac212c6f51e4daaca13037c00b5

custom fork of the fluxbox windowmanager

fix the segfault-fix of fluxgen some days before. workspacemenu must be
destroyed after rootmenu is cleaned.
akir akir
commit

b470256cf6d2fac212c6f51e4daaca13037c00b5

parent

0e82d97262b05d781b7f6f67700117120b4f1558

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

jump to
M src/Screen.ccsrc/Screen.cc

@@ -22,7 +22,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Screen.cc,v 1.287 2004/09/05 01:11:41 fluxgen Exp $ +// $Id: Screen.cc,v 1.288 2004/09/06 13:17:56 akir Exp $ #include "Screen.hh"

@@ -410,12 +410,14 @@ BScreen::~BScreen() {

if (! managed) return; + + if (m_rootmenu.get() != 0) + m_rootmenu->removeAll(); + // Since workspacemenu holds client list menus (from workspace) // we need to destroy it before we destroy workspaces m_workspacemenu.reset(0); - if (m_rootmenu.get() != 0) - m_rootmenu->removeAll(); if (geom_pixmap != None) imageControl().removeImage(geom_pixmap);