Bugfix: Don’t move floating windows when their size constraints forbid resizing (Thanks aksr)

fixes #883
This commit is contained in:
Michael Stapelberg
2012-11-27 09:26:31 +01:00
parent 19cbd3cbec
commit 1ae08b196a
2 changed files with 20 additions and 2 deletions

View File

@ -174,6 +174,13 @@ $rect = $window->rect;
is($rect->{width}, 100, 'width = 100');
is($rect->{height}, 100, 'height = 100');
my $old_x = $rect->{x};
my $old_y = $rect->{y};
cmd 'resize grow up 10px or 10ppt';
$rect = $window->rect;
is($rect->{x}, $old_x, 'window did not move when trying to resize');
is($rect->{y}, $old_y, 'window did not move when trying to resize');
exit_gracefully($pid);
done_testing;