3 use Test::More tests => 4;
9 use_ok('X11::XCB::Window');
12 X11::XCB::Connection->connect(':0');
14 my $original_rect = X11::XCB::Rect->new(x => 0, y => 0, width => 30, height => 30);
16 my $window = X11::XCB::Window->new(
17 class => WINDOW_CLASS_INPUT_OUTPUT,
18 rect => $original_rect,
19 #override_redirect => 1,
20 background_color => 12632256
23 isa_ok($window, 'X11::XCB::Window');
25 is_deeply($window->rect, $original_rect, "rect unmodified before mapping");
30 my $new_rect = $window->rect;
31 ok(!eq_deeply($new_rect, $original_rect), "Window got repositioned");
33 diag( "Testing i3, Perl $], $^X" );