From 80e7d2d34674afb9ae54b638956b75d58ad67429 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sat, 8 Jun 2013 12:48:32 +0200 Subject: [PATCH] lib/i3test: clarify how to identify open_window() windows in i3 commands (Thanks vandannen) --- testcases/lib/i3test.pm | 5 +++++ 1 file changed, 5 insertions(+) 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]} : @_; -- 2.39.5