From 3240c1d94ea952b6a4b14ab234d5fd7a906b3dc2 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 17 Feb 2003 19:17:17 +0000 Subject: [PATCH] check for no screens before asserting --- src/openbox.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openbox.cc b/src/openbox.cc index 57745d63..60db5d83 100644 --- a/src/openbox.cc +++ b/src/openbox.cc @@ -153,13 +153,13 @@ Openbox::Openbox(int argc, char **argv) } } - assert(_focused_screen); - if (_screens.empty()) { printf(_("No screens were found without a window manager. Exiting.\n")); ::exit(1); } + assert(_focused_screen); + ScreenList::iterator it, end = _screens.end(); // run the user's script or the system defaults if that fails -- 2.39.2