Salome HOME
Fix the problem with update of the OCCT 3D Viewer: synchronize the visual state of...
authorrnv <rnv@opencascade.com>
Fri, 13 Dec 2013 15:29:45 +0000 (15:29 +0000)
committerrnv <rnv@opencascade.com>
Fri, 13 Dec 2013 15:29:45 +0000 (15:29 +0000)
commit0748f098bcd4b2b5a94d32ec68ab655dbcdd160a
treede8336662a50cea5d7040eab720b28b57118c2b2
parent8733879f1055c721ef112d67d9c178056f5ccfb9
Fix the problem with update of the OCCT 3D Viewer: synchronize the visual state of the SALOME windows with the OCCT, to avoid creation of the new window for the OCCT 3D viewer inside OpenGl_Window constructor:
    if (aVis->visualid == wattr.visual->visualid)
    {
      aWindow = aParent;
    }
    else
    {
      unsigned long mask = CWBackPixel | CWColormap | CWBorderPixel | CWEventMask;
      aWindow = XCreateWindow (aDisp, aParent, 0, 0, myWidth, myHeight, 0/*bw*/, aVis->depth, InputOutput, aVis->visual, mask, &cwa);
    }
src/Qtx/Qtx.cxx