check to make sure the workspaces is > 0 not != 0
This commit is contained in:
parent
3a9f075274
commit
107e0911b0
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue