2 # vim:ts=4:sw=4:expandtab
8 #####################################################################
9 # Create a floating window and see if resizing works
10 #####################################################################
12 my $window = open_floating_window;
14 # See if configurerequests cause window movements (they should not)
15 my ($a, $t) = $window->rect;
16 $window->rect(X11::XCB::Rect->new(x => $a->x, y => $a->y, width => $a->width, height => $a->height));
20 my ($na, $nt) = $window->rect;
21 is_deeply($na, $a, 'Rects are equal after configurerequest');
24 $window->rect(X11::XCB::Rect->new(x => 0, y => 0, width => 100, height => 100));
28 my ($absolute, $top) = $window->rect;
30 # Make sure the width/height are different from what we’re gonna test, so
31 # that the test will work.
32 isnt($absolute->width, 300, 'width != 300');
33 isnt($absolute->height, 500, 'height != 500');
35 $window->rect(X11::XCB::Rect->new(x => 0, y => 0, width => 300, height => 500));
39 ($absolute, $top) = $window->rect;
41 is($absolute->width, 300, 'width = 300');
42 is($absolute->height, 500, 'height = 500');
45 # Test with default border
53 # Test with 1-px-border