summaryrefslogtreecommitdiffstats
path: root/perl-install/mygtk2.pm
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/mygtk2.pm
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/mygtk2.pm')
-rw-r--r--perl-install/mygtk2.pm1
1 files changed, 1 insertions, 0 deletions
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));