Attached is a test program for modal forms.
The program has a main form, and form2 opened from MainForm is NOT modal
Then Form3 and Form4 are modal.
When closing form3, the edit on form2 receives the focus, but it is not possible to type in it without clicking first.
This is tested on Linux Mandriva and Windows XP