Prevent GWIN drawing while deleting a window from the list

This commit is contained in:
inmarket 2017-04-01 13:21:38 +10:00
parent d8c9ca184f
commit 252b3b918a

View File

@ -742,7 +742,9 @@ static bool_t WM_Add(GHandle gh, const GWindowInit *pInit) {
static void WM_Delete(GHandle gh) {
// Remove it from the window list
gfxSemWait(&gwinsem, TIME_INFINITE);
gfxQueueASyncRemove(&_GWINList, &gh->wmq);
gfxSemSignal(&gwinsem);
}
static void WM_Redraw(GHandle gh) {