Prevent GWIN drawing while deleting a window from the list

release/v2.9
inmarket 2017-04-01 13:21:38 +10:00
parent d8c9ca184f
commit 252b3b918a
1 changed files with 2 additions and 0 deletions

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) {