change prototype of __mg_do_change_topmost_layer: change mgTopmostLayer in __mg_do_change_topmost_layer function

This commit is contained in:
Vincent Wei
2021-03-24 15:19:05 +08:00
parent 697177266b
commit b31d3860e6
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -159,7 +159,7 @@ int __mg_prepare_layer_for_compositing (MG_Layer* layer);
int __mg_end_up_layer_for_compositing (MG_Layer* layer);
#endif
int __mg_do_change_topmost_layer (void);
int __mg_do_change_topmost_layer (MG_Layer* new_topmost);
MG_Layer* __mg_find_layer_by_name (const char* name);
+1 -2
View File
@@ -628,10 +628,9 @@ BOOL GUIAPI ServerSetTopmostLayer (MG_Layer* layer)
DO_COMPSOR_OP_ARGS (transit_to_layer, layer);
#endif
mgTopmostLayer = layer;
CHANGE_TOPMOST_LAYER (layer);
__mg_do_change_topmost_layer ();
__mg_do_change_topmost_layer (layer);
#ifdef _MGSCHEMA_COMPOSITING
if (old_topmost) {