GLCanvas Picking up previous buffer

I am using XIth as rendering engine ,and after migrating to newer xith version ,
GlCanvas has started to pick up previous buffer on minimizing and maximizing of Application .
And if i keep on doing this ,display in GLCanvas switch between current and previous buffer ,this also happens if bring any other app in front of GlCanvas.