summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2014-01-20 01:34:46 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2014-01-20 01:56:14 +0100
commit7ddb042efd511f14bca865e0cca684367d7d6344 (patch)
tree244d1f920e4c369938167a28524fa94e2d77ac4b
parent63b96a79bf9ea443f056df91035d92ae8d720078 (diff)
downloaddrakx-7ddb042efd511f14bca865e0cca684367d7d6344.tar
drakx-7ddb042efd511f14bca865e0cca684367d7d6344.tar.gz
drakx-7ddb042efd511f14bca865e0cca684367d7d6344.tar.bz2
drakx-7ddb042efd511f14bca865e0cca684367d7d6344.tar.xz
drakx-7ddb042efd511f14bca865e0cca684367d7d6344.zip
fix not moving window (mga#11790, mga#11988, mga#11977)
regression introduced in commit fadc8b97ed98977bf264d87d62c33e779f299716 sadly flickering may happen
-rw-r--r--perl-install/install/NEWS1
-rw-r--r--perl-install/mygtk3.pm6
2 files changed, 4 insertions, 3 deletions
diff --git a/perl-install/install/NEWS b/perl-install/install/NEWS
index f99e6d6bc..6f7ffda26 100644
--- a/perl-install/install/NEWS
+++ b/perl-install/install/NEWS
@@ -2,6 +2,7 @@
thus fixing "basesystem package not selected"
- partitioning:
o fix sizing partition widgets
+ o fix not moving window (mga#11790, mga#11988, mga#11977)
Version 16.25 - 19 January 2014
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));