From: Maik Fischer Date: Mon, 21 Nov 2011 15:57:07 +0000 (+0100) Subject: testcases: move i3test::X11 from 170-force_focus_wrapping.t into i3test.pm X-Git-Tag: 4.2~229^2~9 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e72899efb698cb868ceec415dd6cf946a59afc34;p=i3%2Fi3 testcases: move i3test::X11 from 170-force_focus_wrapping.t into i3test.pm --- diff --git a/testcases/lib/i3test.pm b/testcases/lib/i3test.pm index 591064c4..540e89bc 100644 --- a/testcases/lib/i3test.pm +++ b/testcases/lib/i3test.pm @@ -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 diff --git a/testcases/t/170-force_focus_wrapping.t b/testcases/t/170-force_focus_wrapping.t index 48869c10..d2f15a65 100644 --- a/testcases/t/170-force_focus_wrapping.t +++ b/testcases/t/170-force_focus_wrapping.t @@ -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; #####################################################################