diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-08-18 11:34:18 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-08-18 11:34:18 +0000 |
commit | d5b10a973bd4ec474edf3bfa29df4458d2519e85 (patch) | |
tree | d88cd9b2e7eba5006d52988611e1bc64a1a2ed48 /perl-install/mygtk2.pm | |
parent | 48ec956d005ba74c32119ba061285510fd29277d (diff) | |
download | drakx-d5b10a973bd4ec474edf3bfa29df4458d2519e85.tar drakx-d5b10a973bd4ec474edf3bfa29df4458d2519e85.tar.gz drakx-d5b10a973bd4ec474edf3bfa29df4458d2519e85.tar.bz2 drakx-d5b10a973bd4ec474edf3bfa29df4458d2519e85.tar.xz drakx-d5b10a973bd4ec474edf3bfa29df4458d2519e85.zip |
(new,may_destroy) track windows in order to be able to set the proper
transient hint (really fixing focus bug (#42750) which got unfixed
after fixing vivication)
Diffstat (limited to 'perl-install/mygtk2.pm')
-rw-r--r-- | perl-install/mygtk2.pm | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/perl-install/mygtk2.pm b/perl-install/mygtk2.pm index 3067df65f..8cb691002 100644 --- a/perl-install/mygtk2.pm +++ b/perl-install/mygtk2.pm @@ -1182,7 +1182,13 @@ sub flush() { sub may_destroy { my ($w) = @_; - $w->destroy if $w; + return if !$w; + @::main_windows = difference2(\@::main_windows, [ $w->{real_window} ]); + if ($::main_window eq $w->{real_window}) { + undef $::main_window; + $::main_window = $::main_windows[-1]; + } + $w->destroy; } sub root_window() { |