diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-05-07 15:05:07 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-05-07 15:05:07 +0000 |
commit | 0860510a3519855cdbff730ab01f8ea08220e183 (patch) | |
tree | 9bcef9d2c82162732b856d2b3544ecdd310558eb /NxWidgets/libnxwidgets/src/cnxtkwindow.cxx | |
parent | 2ca1594f911180b2a342c884e87285060a052865 (diff) | |
download | nuttx-0860510a3519855cdbff730ab01f8ea08220e183.tar.gz nuttx-0860510a3519855cdbff730ab01f8ea08220e183.tar.bz2 nuttx-0860510a3519855cdbff730ab01f8ea08220e183.zip |
NxWidgets: Fix a potential deadlock that can occur waiting for toolbard geometry data
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4709 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'NxWidgets/libnxwidgets/src/cnxtkwindow.cxx')
-rw-r--r-- | NxWidgets/libnxwidgets/src/cnxtkwindow.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/NxWidgets/libnxwidgets/src/cnxtkwindow.cxx b/NxWidgets/libnxwidgets/src/cnxtkwindow.cxx index 8b880a618..3f77254b2 100644 --- a/NxWidgets/libnxwidgets/src/cnxtkwindow.cxx +++ b/NxWidgets/libnxwidgets/src/cnxtkwindow.cxx @@ -178,6 +178,12 @@ CNxToolbar *CNxTkWindow::openToolbar(nxgl_coord_t height) delete widgetControl; return (CNxToolbar *)0; } + + // Provide parent widget control information to new widget control instance + + struct nxgl_rect_s bounds; + m_widgetControl->getWindowBoundingBox(&bounds); + widgetControl->setWindowBounds(m_widgetControl->getWindowHandle(), &bounds); } return m_toolbar; |