]> Dogcows Code - chaz/openbox/blobdiff - src/openbox.cc
check for no screens before asserting
[chaz/openbox] / src / openbox.cc
index 57745d63738264eefb1450a61a51ebe940b82a33..60db5d83f4c5c61133cbf1212522181eb714cd89 100644 (file)
@@ -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
This page took 0.022212 seconds and 4 git commands to generate.