check for no screens before asserting
Dana Jansens danakj@orodu.net
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
src/openbox.cc
→
src/openbox.cc
@@ -153,12 +153,12 @@ _screens.push_back(0);
} } - 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();