]> git.sur5r.net Git - i3/i3/commitdiff
lib/i3test: clarify how to identify open_window() windows in i3 commands (Thanks...
authorMichael Stapelberg <michael@stapelberg.de>
Sat, 8 Jun 2013 10:48:32 +0000 (12:48 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Sat, 8 Jun 2013 10:49:02 +0000 (12:49 +0200)
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]} : @_;