From e1ea9b7209283a1e354a408de05490c8b7507948 Mon Sep 17 00:00:00 2001 From: Vincent Wei Date: Wed, 24 Mar 2021 11:29:37 +0800 Subject: [PATCH] declare a new global variable: mgDefaultLayer; tune description of MoveToLayer and ServerMoveToLayer --- include/minigui.h | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/include/minigui.h b/include/minigui.h index 591032bf..396149f5 100644 --- a/include/minigui.h +++ b/include/minigui.h @@ -351,9 +351,17 @@ extern MG_EXPORT MG_Client* mgClients; */ extern MG_EXPORT MG_Layer* mgTopmostLayer; +/** + * \var MG_Layer* mgDefaultLayer + * \brief The pointer to the default layer. + * + * \sa MG_Layer + */ +extern MG_EXPORT MG_Layer* mgDefaultLayer; + /** * \var MG_Layer* mgLayers - * \brief The pointer to the array of layers. + * \brief The pointer to the layer list. * * \sa MG_Layer */ @@ -562,6 +570,8 @@ MG_EXPORT BOOL GUIAPI DeleteLayer (BOOL handle_name, * * \return TRUE on success, otherwise FALSE. * + * \note Only one client which has no any window can be moved. + * * \note The client which created a fixed main window * (a main window acts as the screen lock, the docker, or the launcher) will * be moved to the topmost layer automatically. @@ -1491,7 +1501,9 @@ MG_EXPORT BOOL GUIAPI ServerDoZNodeOperation (MG_Layer* layer, int idx_znode, * * \return TRUE on success, otherwise FALSE. * - * \note Server-only function. The client which created a fixed main window + * \note Server-only function. Only one client which has no any window can be moved. + * + * \note The client which created a fixed main window * (a main window acts as the screen lock, the docker, or the launcher) will * be moved to the topmost layer automatically. *