diff --git a/src/Screen.cc b/src/Screen.cc index 88fa659e..27373d39 100644 --- a/src/Screen.cc +++ b/src/Screen.cc @@ -365,7 +365,16 @@ rootcommand("") continue; if (attrib.map_state != IsUnmapped) { - new FluxboxWindow(children[i], this); + FluxboxWindow *tempwin = 0; + try { + tempwin = new FluxboxWindow(children[i], this); + } catch (FluxboxWindow::Error err) { + FluxboxWindow::showError(err); + delete tempwin; + tempwin = 0; + } catch (...) { + cerr<<"FATAL: Unknown catch"<searchWindow(children[i]); if (win) {