]> Dogcows Code - chaz/openbox/commitdiff
check to make sure the workspaces is > 0 not != 0
authorDana Jansens <danakj@orodu.net>
Mon, 22 Jul 2002 16:15:39 +0000 (16:15 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 22 Jul 2002 16:15:39 +0000 (16:15 +0000)
src/Screen.cc

index 378d61e1d0b14fbb8704015e102f1176f25174a7..d92973b34169fbfab457a347613cf657bedc3c0a 100644 (file)
@@ -212,7 +212,7 @@ BScreen::BScreen(Blackbox *bb, unsigned int scrn) : ScreenInfo(bb, scrn) {
   iconmenu = new Iconmenu(this);
   configmenu = new Configmenu(this);
 
-  if (resource.workspaces != 0) {
+  if (resource.workspaces > 0) {
     for (unsigned int i = 0; i < resource.workspaces; ++i) {
       Workspace *wkspc = new Workspace(this, workspacesList.size());
       workspacesList.push_back(wkspc);
This page took 0.028 seconds and 4 git commands to generate.