tests: don’t skip t/10-dock.t, make it work again
This commit is contained in:
parent
7f89c71689
commit
bafb065d7c
|
@ -10,9 +10,6 @@ BEGIN {
|
||||||
use_ok('X11::XCB::Connection') or BAIL_OUT('Cannot load X11::XCB::Connection');
|
use_ok('X11::XCB::Connection') or BAIL_OUT('Cannot load X11::XCB::Connection');
|
||||||
}
|
}
|
||||||
|
|
||||||
SKIP: {
|
|
||||||
skip "Dock clients not yet implemented", 1;
|
|
||||||
|
|
||||||
my $x = X11::XCB::Connection->new;
|
my $x = X11::XCB::Connection->new;
|
||||||
|
|
||||||
#####################################################################
|
#####################################################################
|
||||||
|
@ -30,7 +27,7 @@ my $window = $x->root->create_child(
|
||||||
class => WINDOW_CLASS_INPUT_OUTPUT,
|
class => WINDOW_CLASS_INPUT_OUTPUT,
|
||||||
rect => [ 0, 0, 30, 30],
|
rect => [ 0, 0, 30, 30],
|
||||||
background_color => '#FF0000',
|
background_color => '#FF0000',
|
||||||
type => $x->atom(name => '_NET_WM_WINDOW_TYPE_DOCK'),
|
window_type => $x->atom(name => '_NET_WM_WINDOW_TYPE_DOCK'),
|
||||||
);
|
);
|
||||||
|
|
||||||
$window->map;
|
$window->map;
|
||||||
|
@ -44,7 +41,7 @@ my $fwindow = $x->root->create_child(
|
||||||
class => WINDOW_CLASS_INPUT_OUTPUT,
|
class => WINDOW_CLASS_INPUT_OUTPUT,
|
||||||
rect => [ 0, 0, 30, 30],
|
rect => [ 0, 0, 30, 30],
|
||||||
background_color => '#FF0000',
|
background_color => '#FF0000',
|
||||||
type => $x->atom(name => '_NET_WM_WINDOW_TYPE_DOCK'),
|
window_type => $x->atom(name => '_NET_WM_WINDOW_TYPE_DOCK'),
|
||||||
);
|
);
|
||||||
|
|
||||||
$fwindow->transient_for($window);
|
$fwindow->transient_for($window);
|
||||||
|
@ -54,4 +51,3 @@ sleep 0.25;
|
||||||
|
|
||||||
|
|
||||||
diag( "Testing i3, Perl $], $^X" );
|
diag( "Testing i3, Perl $], $^X" );
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue