Don't set the WM_TRANSIENT_FOR property to an invalid value - delete it instead.
Attach a file by drag & drop or click to upload