Browse Source

Prevent GWIN drawing while deleting a window from the list

remotes/origin_old/release/v2.9
inmarket 6 years ago
parent
commit
252b3b918a
  1. 2
      src/gwin/gwin_wm.c

2
src/gwin/gwin_wm.c

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

Loading…
Cancel
Save