all repos — fluxbox @ 27842d01fa83363402562721b2d9ca320f8e0fba

custom fork of the fluxbox windowmanager

removed catch
fluxgen fluxgen
commit

27842d01fa83363402562721b2d9ca320f8e0fba

parent

efa5e85503e31b75737089aa045991455120910e

1 files changed, 7 insertions(+), 12 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.22 2002/02/10 22:48:19 fluxgen Exp $ +// $Id: Screen.cc,v 1.23 2002/02/11 11:52:07 fluxgen Exp $ // stupid macros needed to access some functions in version 2 of the GNU C // library

@@ -453,18 +453,13 @@ if (attrib.override_redirect)

continue; if (attrib.map_state != IsUnmapped) { - 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 exception"<<endl; + + FluxboxWindow *win = new FluxboxWindow(children[i], this); + if (!win->isManaged()) { + delete win; + win = 0; } - - FluxboxWindow *win = fluxbox->searchWindow(children[i]); + if (win) { XMapRequestEvent mre; mre.window = children[i];