X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=testcases%2Flib%2Fi3test.pm;fp=testcases%2Flib%2Fi3test.pm;h=9f3a6ea2d0be346be4363dd074c8cac69a19a8cd;hb=80e7d2d34674afb9ae54b638956b75d58ad67429;hp=d6d71b23b7f49be099d60b2249c2ee53da8779af;hpb=4937788e8d4b1c0a65c95b4e65885f717cbf95ab;p=i3%2Fi3 diff --git a/testcases/lib/i3test.pm b/testcases/lib/i3test.pm index d6d71b23..9f3a6ea2 100644 --- a/testcases/lib/i3test.pm +++ b/testcases/lib/i3test.pm @@ -315,6 +315,11 @@ Usually, though, calls are simpler: my $top_window = open_window; +To identify the resulting window object in i3 commands, use the id property: + + my $top_window = open_window; + cmd '[id="' . $top_window->id . '"] kill'; + =cut sub open_window { my %args = @_ == 1 ? %{$_[0]} : @_;