2008/8/25 Nick Schermer <nickschermer at gmail.com>: > x = geom.x + (geom.width - win_width) / 2; > y = geom.y + (geom.height - win_height) /2; Err win_width -> width, win_height -> height. Why is there no 'compile' button in gmail? Meh. Nick