summaryrefslogtreecommitdiffstats
path: root/perl-install/mygtk3.pm
diff options
context:
space:
mode:
authorAnne Nicolas <ennael@mageia.org>2014-01-20 09:44:32 +0100
committerAnne Nicolas <ennael@mageia.org>2014-01-20 09:44:32 +0100
commit2a943bf89881e5a4a405243774a8b7edfbb52675 (patch)
treef098a2e1e8aa9b15065ec27603539750375806a8 /perl-install/mygtk3.pm
parente6fa9e69e67d7b0a74a04e90253f944ba5bf27b1 (diff)
parent4f2d23e7ff6a659d0ddc760dce2c0135481d029a (diff)
downloaddrakx-2a943bf89881e5a4a405243774a8b7edfbb52675.tar
drakx-2a943bf89881e5a4a405243774a8b7edfbb52675.tar.gz
drakx-2a943bf89881e5a4a405243774a8b7edfbb52675.tar.bz2
drakx-2a943bf89881e5a4a405243774a8b7edfbb52675.tar.xz
drakx-2a943bf89881e5a4a405243774a8b7edfbb52675.zip
Merge branch 'master' of git://git.mageia.org/software/drakx
Diffstat (limited to 'perl-install/mygtk3.pm')
-rw-r--r--perl-install/mygtk3.pm8
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));