include/graphics/nxwidgets/cwidgetcontrol.hxx: Add handshare to getWindowHandle() to avoid returning a NULL handle. But now Twm4Nx hangs waiting for the non-NULL handle,

This commit is contained in:
Gregory Nutt 2019-05-01 12:19:14 -06:00
parent f730108adb
commit 278b40b766

View File

@ -667,6 +667,15 @@ namespace NXWidgets
inline NXHANDLE getWindowHandle(void)
{
// Verify that we have the window handle
if (m_hWindow == (NXHANDLE)0)
{
// The window handle is saved at the same time as the bounds
waitBoundsData();
}
return m_hWindow;
}