The offending piece of code is the configureXWindow call in the 'center check'. I'm no X expert but I think you need to wait for a ChangeNotify before calling configureXWindow a second time.
However, I tried moveing this center check to the handleEvent method and doing the check on the changeNotify but the problem persisted so that's that theory out. Any ideas?
Also the center check doesn't actually work (for me), so we may as well just remove this peice of code if we can find no better place for it? (i.e. somewhere where it works and doesn't break anything else!)
The offending piece of code is the configureXWindow call in the 'center check'. I'm no X expert but I think you need to wait for a ChangeNotify before calling configureXWindow a second time.
However, I tried moveing this center check to the handleEvent method and doing the check on the changeNotify but the problem persisted so that's that theory out. Any ideas?
Also the center check doesn't actually work (for me), so we may as well just remove this peice of code if we can find no better place for it? (i.e. somewhere where it works and doesn't break anything else!)