summaryrefslogtreecommitdiffstats
path: root/perl-install/mygtk3.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/mygtk3.pm')
-rw-r--r--perl-install/mygtk3.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/perl-install/mygtk3.pm b/perl-install/mygtk3.pm
index ff27ecbe1..c9e987a1d 100644
--- a/perl-install/mygtk3.pm
+++ b/perl-install/mygtk3.pm
@@ -1336,9 +1336,9 @@ sub _create_Window {
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;
- (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));