From: Michael Stapelberg Date: Sat, 8 Jun 2013 10:48:32 +0000 (+0200) Subject: lib/i3test: clarify how to identify open_window() windows in i3 commands (Thanks... X-Git-Tag: 4.6~30 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=80e7d2d34674afb9ae54b638956b75d58ad67429;p=i3%2Fi3 lib/i3test: clarify how to identify open_window() windows in i3 commands (Thanks vandannen) --- 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]} : @_;