catching exception on window creation
This commit is contained in:
parent
cf74b88d96
commit
5cc64f4eb3
1 changed files with 10 additions and 1 deletions
|
@ -365,7 +365,16 @@ rootcommand("")
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (attrib.map_state != IsUnmapped) {
|
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]);
|
FluxboxWindow *win = fluxbox->searchWindow(children[i]);
|
||||||
if (win) {
|
if (win) {
|
||||||
|
|
Loading…
Reference in a new issue