mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-09-25 02:33:59 +08:00
add client id to parameters of calc_mainwin_pos
This commit is contained in:
+1
-1
@@ -1600,7 +1600,7 @@ typedef struct _CompositorOps {
|
||||
* a main window with the extended style WS_EX_AUTOPOSITION.
|
||||
*/
|
||||
void (*calc_mainwin_pos) (CompositorCtxt* ctxt, MG_Layer* layer,
|
||||
DWORD zt_type, int first_for_type, CALCPOSINFO* info);
|
||||
DWORD zt_type, int first_for_type, CALCPOSINFO* info, int cli);
|
||||
|
||||
/**
|
||||
* This operation will be called when there was a layer operation.
|
||||
|
||||
@@ -532,7 +532,7 @@ static void rebuild_wins_region (CompositorCtxt* ctxt)
|
||||
}
|
||||
|
||||
static void calc_mainwin_pos (CompositorCtxt* ctxt, MG_Layer* layer,
|
||||
DWORD zt_type, int first_for_type, CALCPOSINFO* info)
|
||||
DWORD zt_type, int first_for_type, CALCPOSINFO* info, int cli)
|
||||
{
|
||||
/* give a default size first */
|
||||
if (IsRectEmpty (&info->rc)) {
|
||||
|
||||
@@ -4410,7 +4410,7 @@ static int dskCalculateDefaultPosition (int cli, CALCPOSINFO* info)
|
||||
|
||||
#ifdef _MGSCHEMA_COMPOSITING /* not defined _MGSCHEMA_COMPOSITING */
|
||||
DO_COMPSOR_OP_ARGS (calc_mainwin_pos,
|
||||
__mg_get_layer_from_zi(zi), zt_type, first, info);
|
||||
__mg_get_layer_from_zi(zi), zt_type, first, info, cli);
|
||||
#else /* defined _MGSCHEMA_COMPOSITING */
|
||||
/* give a default size first */
|
||||
if (IsRectEmpty (&info->rc)) {
|
||||
|
||||
Reference in New Issue
Block a user