]> git.sur5r.net Git - i3/i3/blobdiff - testcases/lib/i3test.pm
lib/i3test: clarify how to identify open_window() windows in i3 commands (Thanks...
[i3/i3] / testcases / lib / i3test.pm
index d6d71b23b7f49be099d60b2249c2ee53da8779af..9f3a6ea2d0be346be4363dd074c8cac69a19a8cd 100644 (file)
@@ -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]} : @_;