Another gwin concurrency fix
This commit is contained in:
parent
d8526e672a
commit
ee33f13f7e
1 changed files with 5 additions and 1 deletions
|
@ -986,6 +986,8 @@ static void WM_Raise(GHandle gh) {
|
||||||
// Take it off the list and then put it back on top
|
// Take it off the list and then put it back on top
|
||||||
// The order of the list then reflects the z-order.
|
// The order of the list then reflects the z-order.
|
||||||
|
|
||||||
|
gfxSemWait(&gwinsem, TIME_INFINITE);
|
||||||
|
|
||||||
gfxQueueASyncRemove(&_GWINList, &gh->wmq);
|
gfxQueueASyncRemove(&_GWINList, &gh->wmq);
|
||||||
gfxQueueASyncPut(&_GWINList, &gh->wmq);
|
gfxQueueASyncPut(&_GWINList, &gh->wmq);
|
||||||
|
|
||||||
|
@ -1020,6 +1022,8 @@ static void WM_Raise(GHandle gh) {
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
gfxSemSignal(&gwinsem);
|
||||||
|
|
||||||
// Redraw the window
|
// Redraw the window
|
||||||
_gwinUpdate(gh);
|
_gwinUpdate(gh);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue