@Linkos: this code don't work well under Gnome... so I used the gtk method.
@Chronos: The code that I used is taken directly from this page.
Anyway, I decided to don't use modal forms in my app.
But this problem it's still a bug from Gnome or Lazarus... I don't know why but I think it may be a Gnome limitation...