aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gwin/gwin_wm.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gwin/gwin_wm.c b/src/gwin/gwin_wm.c
index 0c4fd1bf..7f251a70 100644
--- a/src/gwin/gwin_wm.c
+++ b/src/gwin/gwin_wm.c
@@ -986,6 +986,8 @@ static void WM_Raise(GHandle gh) {
// Take it off the list and then put it back on top
// The order of the list then reflects the z-order.
+ gfxSemWait(&gwinsem, TIME_INFINITE);
+
gfxQueueASyncRemove(&_GWINList, &gh->wmq);
gfxQueueASyncPut(&_GWINList, &gh->wmq);
@@ -1019,7 +1021,9 @@ static void WM_Raise(GHandle gh) {
}
}
#endif
-
+
+ gfxSemSignal(&gwinsem);
+
// Redraw the window
_gwinUpdate(gh);
}