]> git.sur5r.net Git - i3/i3/commitdiff
testcases: move i3test::X11 from 170-force_focus_wrapping.t into i3test.pm
authorMaik Fischer <maikf@qu.cx>
Mon, 21 Nov 2011 15:57:07 +0000 (16:57 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Mon, 21 Nov 2011 23:50:33 +0000 (23:50 +0000)
testcases/lib/i3test.pm
testcases/t/170-force_focus_wrapping.t

index 591064c43ef1e196de6a1829776cec3fc7cf1b68..540e89bc1df07502450ba1da1df53b257d51e3a5 100644 (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
index 48869c1081c75981aa59bd0368a6f50bbb61c588..d2f15a655aa68916e860b5472a1cf23485ee138d 100644 (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;
 
 #####################################################################