diff options
Diffstat (limited to 'perl-install/mygtk2.pm')
-rw-r--r-- | perl-install/mygtk2.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/perl-install/mygtk2.pm b/perl-install/mygtk2.pm index c5987b3a0..e60206f0d 100644 --- a/perl-install/mygtk2.pm +++ b/perl-install/mygtk2.pm @@ -615,6 +615,7 @@ sub _gtk_any_Window { } $w->set_modal(delete $opts->{modal}) if exists $opts->{modal}; + $opts->{transient_for} ||= $::main_window; $w->set_modal(1) if exists $opts->{transient_for}; $w->set_transient_for(delete $opts->{transient_for}) if exists $opts->{transient_for}; $w->set_border_width(delete $opts->{border_width}) if exists $opts->{border_width}; |