add check for minimized window

This commit is contained in:
Jim Saxton 2017-07-07 12:06:18 -07:00
parent 75acf961b3
commit b88fb30160

View File

@ -6071,7 +6071,8 @@ int YabInterface::WindowGet(const char* view, const char* option)
else if(t.IFindFirst("maximum-height")!=B_ERROR) opt = 8;
else if(t.IFindFirst("width")!=B_ERROR) opt = 3;
else if(t.IFindFirst("height")!=B_ERROR) opt = 4;
else if(t.IFindFirst("exists")!=B_ERROR) opt = 9;
else if(t.IFindFirst("exists")!=B_ERROR) opt = 9;
else if(t.IFindFirst("minimized-to-deskbar")!=B_ERROR) opt = 10;
YabView *myView = cast_as((BView*)viewList->GetView(view), YabView);
@ -6109,6 +6110,8 @@ int YabInterface::WindowGet(const char* view, const char* option)
break;
case 8: ret = (int)y2;
break;
case 10: ret = w->IsMinimized();
break;
}
}
if (opt==9)