From 186869f271186263eb27c12f94bf83aa249b6eb7 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 19 Aug 2008 15:03:48 +0000 Subject: (_create_Window) prevent flickering by ignoring bogus size-allocate events --- perl-install/install/NEWS | 2 ++ perl-install/mygtk2.pm | 1 + 2 files changed, 3 insertions(+) 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)); -- cgit v1.2.1