diff options
Diffstat (limited to 'perl-install/mygtk3.pm')
-rw-r--r-- | perl-install/mygtk3.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/perl-install/mygtk3.pm b/perl-install/mygtk3.pm index f9c614198..c9e987a1d 100644 --- a/perl-install/mygtk3.pm +++ b/perl-install/mygtk3.pm @@ -1333,12 +1333,12 @@ sub _create_Window { my ($wi, $he); $w->signal_connect(size_allocate => sub { my (undef, $event) = @_; - my @w_size = @$event{qw(height width)}; + my @w_size = @$event{qw(width height)}; # ignore bogus sizing events: - 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 $w_size[0] < 5; + return if $w_size[0] == $wi && $w_size[1] == $he; + ($wi, $he) = @w_size; $w->move(max(0, $::rootwidth - ($::o->{windowwidth} + $wi) / 2), max(0, ($::o->{windowheight} - $he) / 2)); |