diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-05-17 22:16:02 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-05-17 22:16:02 +0000 |
commit | d53035bc78b3fbbd640a6a7535b9cdf7ca0d9667 (patch) | |
tree | 166f99f4788c23b3649826405468b34f475d4726 /NxWidgets/libnxwidgets/src/cwindoweventhandlerlist.cxx | |
parent | b1bbea743d6eef38eebf9975a3b19bbfb7e71233 (diff) | |
download | nuttx-d53035bc78b3fbbd640a6a7535b9cdf7ca0d9667.tar.gz nuttx-d53035bc78b3fbbd640a6a7535b9cdf7ca0d9667.tar.bz2 nuttx-d53035bc78b3fbbd640a6a7535b9cdf7ca0d9667.zip |
Implement an NX interface to block flush message queues in multi-user mode. This is necessary to prevent stale window handles when a window is closed
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4745 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'NxWidgets/libnxwidgets/src/cwindoweventhandlerlist.cxx')
-rw-r--r-- | NxWidgets/libnxwidgets/src/cwindoweventhandlerlist.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/NxWidgets/libnxwidgets/src/cwindoweventhandlerlist.cxx b/NxWidgets/libnxwidgets/src/cwindoweventhandlerlist.cxx index 5f3048b63..15b2c65ff 100644 --- a/NxWidgets/libnxwidgets/src/cwindoweventhandlerlist.cxx +++ b/NxWidgets/libnxwidgets/src/cwindoweventhandlerlist.cxx @@ -160,3 +160,14 @@ void CWindowEventHandlerList::raiseKeyboardEvent(void) #endif } +/** + * Raise an NX window blocked event. + */ + +void CWindowEventHandlerList::raiseBlockedEvent(void) +{ + for (int i = 0; i < m_eventHandlers.size(); ++i) + { + m_eventHandlers.at(i)->handleBlockedEvent(); + } +} |