summaryrefslogtreecommitdiff
path: root/nuttx/graphics/nxmu/nxmu_requestbkgd.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-12-01 22:13:03 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-12-01 22:13:03 +0000
commit0f895f0ed4b2370af37d91c0ecb7649d914ed147 (patch)
tree0aed3e4de0338044be420062103f72c88a430fa3 /nuttx/graphics/nxmu/nxmu_requestbkgd.c
parent2e5d80f7a34c92e7182b549bd35e0b218fd100a4 (diff)
downloadpx4-nuttx-0f895f0ed4b2370af37d91c0ecb7649d914ed147.tar.gz
px4-nuttx-0f895f0ed4b2370af37d91c0ecb7649d914ed147.tar.bz2
px4-nuttx-0f895f0ed4b2370af37d91c0ecb7649d914ed147.zip
Fixed for multi-user NX mode
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1386 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/graphics/nxmu/nxmu_requestbkgd.c')
-rw-r--r--nuttx/graphics/nxmu/nxmu_requestbkgd.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/nuttx/graphics/nxmu/nxmu_requestbkgd.c b/nuttx/graphics/nxmu/nxmu_requestbkgd.c
index 6dba04a98..7214c235f 100644
--- a/nuttx/graphics/nxmu/nxmu_requestbkgd.c
+++ b/nuttx/graphics/nxmu/nxmu_requestbkgd.c
@@ -81,6 +81,7 @@
* conn - The client containing connection information [IN]
* be - The server state structure [IN]
* cb - Callbacks used to process window events
+ * arg - User provided argument (see nx_openwindow, nx_constructwindow)
*
* Return:
* None
@@ -89,7 +90,8 @@
void nxmu_requestbkgd(FAR struct nxfe_conn_s *conn,
FAR struct nxbe_state_s *be,
- FAR const struct nx_callback_s *cb)
+ FAR const struct nx_callback_s *cb,
+ FAR void *arg)
{
#ifdef CONFIG_DEBUG
if (!conn || !be || !cb)
@@ -103,6 +105,7 @@ void nxmu_requestbkgd(FAR struct nxfe_conn_s *conn,
*/
be->bkgd.cb = cb;
+ be->bkgd.arg = arg;
be->bkgd.conn = conn;
/* Report the size/position of the background window to the client */
@@ -116,7 +119,7 @@ void nxmu_requestbkgd(FAR struct nxfe_conn_s *conn,
/* Provide the mouse settings */
#ifdef CONFIG_NX_MOUSE
- nxsu_mousereport(&be->bkgd);
+ nxmu_mousereport(&be->bkgd);
#endif
}