testcases: move i3test::X11 from 170-force_focus_wrapping.t into i3test.pm
This commit is contained in:
parent
af810df8da
commit
e72899efb6
@ -449,4 +449,14 @@ sub launch_with_config {
|
|||||||
return $pid;
|
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
|
1
|
||||||
|
@ -6,18 +6,6 @@
|
|||||||
#
|
#
|
||||||
use i3test;
|
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;
|
my $x = i3test::X11->new;
|
||||||
|
|
||||||
#####################################################################
|
#####################################################################
|
||||||
|
Loading…
x
Reference in New Issue
Block a user