add check for minimized window
This commit is contained in:
@@ -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("maximum-height")!=B_ERROR) opt = 8;
|
||||||
else if(t.IFindFirst("width")!=B_ERROR) opt = 3;
|
else if(t.IFindFirst("width")!=B_ERROR) opt = 3;
|
||||||
else if(t.IFindFirst("height")!=B_ERROR) opt = 4;
|
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);
|
YabView *myView = cast_as((BView*)viewList->GetView(view), YabView);
|
||||||
@@ -6109,6 +6110,8 @@ int YabInterface::WindowGet(const char* view, const char* option)
|
|||||||
break;
|
break;
|
||||||
case 8: ret = (int)y2;
|
case 8: ret = (int)y2;
|
||||||
break;
|
break;
|
||||||
|
case 10: ret = w->IsMinimized();
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (opt==9)
|
if (opt==9)
|
||||||
|
|||||||
Reference in New Issue
Block a user