zi->nr_globals set to 0 initially

This commit is contained in:
Vincent Wei
2020-01-17 17:25:39 +08:00
parent 7030edd84e
commit d13bbf9d33

View File

@@ -125,7 +125,7 @@ static BOOL do_alloc_layer (MG_Layer* layer, const char* name,
zi->max_nr_normals = nr_normals;
zi->nr_popupmenus = 0;
zi->nr_globals = 1;
zi->nr_globals = 0;
zi->nr_topmosts = 0;
zi->nr_normals = 0;
@@ -548,8 +548,7 @@ BOOL GUIAPI ServerSetTopmostLayer (MG_Layer* layer)
if (OnChangeLayer)
OnChangeLayer (LCO_TOPMOST_CHANGED, mgTopmostLayer, NULL);
if (IsPaint)
{
if (IsPaint) {
SendMessage (HWND_DESKTOP, MSG_PAINT, 0, 0);
}