catching exception on window creation

This commit is contained in:
fluxgen 2002-01-18 01:27:46 +00:00
parent cf74b88d96
commit 5cc64f4eb3

View file

@ -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"<<endl;
}
FluxboxWindow *win = fluxbox->searchWindow(children[i]);
if (win) {