testcases: move i3test::X11 from 170-force_focus_wrapping.t into i3test.pm

This commit is contained in:
Maik Fischer 2011-11-21 16:57:07 +01:00 committed by Michael Stapelberg
parent af810df8da
commit e72899efb6
2 changed files with 10 additions and 12 deletions

View File

@ -449,4 +449,14 @@ sub launch_with_config {
return $pid;
}
package i3test::X11;
use parent 'X11::XCB::Connection';
sub input_focus {
my $self = shift;
i3test::sync_with_i3($self);
return $self->SUPER::input_focus(@_);
}
1

View File

@ -6,18 +6,6 @@
#
use i3test;
{
package i3test::X11;
use parent 'X11::XCB::Connection';
sub input_focus {
my $self = shift;
i3test::sync_with_i3($self);
return $self->SUPER::input_focus(@_);
}
}
my $x = i3test::X11->new;
#####################################################################