summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-08-19 15:03:48 +0000
committerThierry Vignaud <tv@mandriva.org>2008-08-19 15:03:48 +0000
commit186869f271186263eb27c12f94bf83aa249b6eb7 (patch)
tree9d29af59904898987d62bc05bd2810fd7f802604 /perl-install
parent9bc3dca14ac38394915fbd4fdea045a06476d27a (diff)
downloaddrakx-186869f271186263eb27c12f94bf83aa249b6eb7.tar
drakx-186869f271186263eb27c12f94bf83aa249b6eb7.tar.gz
drakx-186869f271186263eb27c12f94bf83aa249b6eb7.tar.bz2
drakx-186869f271186263eb27c12f94bf83aa249b6eb7.tar.xz
drakx-186869f271186263eb27c12f94bf83aa249b6eb7.zip
(_create_Window) prevent flickering by ignoring bogus size-allocate events
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/install/NEWS2
-rw-r--r--perl-install/mygtk2.pm1
2 files changed, 3 insertions, 0 deletions
diff --git a/perl-install/install/NEWS b/perl-install/install/NEWS
index 04bf42ab9..37b148d37 100644
--- a/perl-install/install/NEWS
+++ b/perl-install/install/NEWS
@@ -1,4 +1,6 @@
- center sub dialogs
+- prevent flickering by:
+ o ignoring bogus size-allocate events
- stop reducing help & release notes dialogs' size
Version 11.17 - 19 August 2008
diff --git a/perl-install/mygtk2.pm b/perl-install/mygtk2.pm
index 9289285d0..5a24de514 100644
--- a/perl-install/mygtk2.pm
+++ b/perl-install/mygtk2.pm
@@ -1033,6 +1033,7 @@ sub _create_Window {
return if $w_size[2] < 5;
return if $w_size[2] == $wi && $w_size[3] == $he; #BUG
(undef, undef, $wi, $he) = @w_size;
+ return if $wi <= 200 && $he <= 200;
$w->move(max(0, $::rootwidth - ($::o->{windowwidth} + $wi) / 2),
max(0, ($::o->{windowheight} - $he) / 2));