diff --git a/include/minigui.h b/include/minigui.h index b745c223..a9ec81aa 100644 --- a/include/minigui.h +++ b/include/minigui.h @@ -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. diff --git a/src/kernel/compsor-fallback.c b/src/kernel/compsor-fallback.c index da22d5a1..73d64586 100644 --- a/src/kernel/compsor-fallback.c +++ b/src/kernel/compsor-fallback.c @@ -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)) { diff --git a/src/kernel/desktop.c b/src/kernel/desktop.c index f79a16f0..45339b0d 100644 --- a/src/kernel/desktop.c +++ b/src/kernel/desktop.c @@ -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)) {