1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0028333: Draw Harness - whatis command hangs when selection is activated with no opened view

Added new method Draw_Window::IsMapped() for checked window state.
Draw_Window using XLib now does not exit application on closing window.
The method Draw_Viewer::Select() (called by whatis command)
has been corrected so as not to enter the loop if no views are initialized.
This commit is contained in:
msv
2017-01-09 10:11:01 +03:00
committed by apn
parent e59839c8c2
commit 7c441da0d1
4 changed files with 93 additions and 4 deletions

View File

@@ -327,6 +327,21 @@ Standard_Boolean Draw_Window::DefineColor (const Standard_Integer&, Standard_CSt
return Standard_True; // unused
}
//=======================================================================
//function : IsMapped
//purpose :
//=======================================================================
bool Draw_Window::IsMapped() const
{
if (Draw_VirtualWindows
|| myWindow == NULL)
{
return false;
}
return [myWindow isVisible];
}
//=======================================================================
//function : DisplayWindow
//purpose :