Your comments

Now ST2 sometimes crashes when saving a file. And with "crash", I meant the X Server also crashes. Maybe all this started after some packages upgrades (I'm still using Ubuntu 10.04). I noticed that when I'm running not running the composite window manager Compiz, and instead, a non composite one (like plain Metacity) then the dialogs behave normally.