# HG changeset patch # User reimar # Date 1263132190 0 # Node ID 9247ff6e841cf88f355aae6ed8339c7a5a571ef6 # Parent 6d40c92e081ee312b7d006a37c214c4aab407c61 Call XSync after XShmAttach to avoid a possible race-condition with shmctl. Patch from FreeBSD ports. diff -r 6d40c92e081e -r 9247ff6e841c gui/wm/ws.c --- a/gui/wm/ws.c Sun Jan 10 13:55:55 2010 +0000 +++ b/gui/wm/ws.c Sun Jan 10 14:03:10 2010 +0000 @@ -1172,6 +1172,7 @@ win->xImage->data=win->Shminfo.shmaddr; win->Shminfo.readOnly=0; XShmAttach( wsDisplay,&win->Shminfo ); + XSync(wsDisplay, False); shmctl( win->Shminfo.shmid,IPC_RMID,0 ); } else