all repos — fluxbox @ 5cc64f4eb3f1a5cf5ec706cbc05c9eef8bf3ccf3

custom fork of the fluxbox windowmanager

catching exception on window creation
fluxgen fluxgen
commit

5cc64f4eb3f1a5cf5ec706cbc05c9eef8bf3ccf3

parent

cf74b88d96c571d3a725a24cd7ef36e5ee200d3a

1 files changed, 10 insertions(+), 1 deletions(-)

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

@@ -365,7 +365,16 @@ if (attrib.override_redirect)

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) {