lib/i3test: clarify how to identify open_window() windows in i3 commands (Thanks vandannen)

This commit is contained in:
Michael Stapelberg 2013-06-08 12:48:32 +02:00
parent 4937788e8d
commit 80e7d2d346

View File

@ -315,6 +315,11 @@ Usually, though, calls are simpler:
my $top_window = open_window; 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 =cut
sub open_window { sub open_window {
my %args = @_ == 1 ? %{$_[0]} : @_; my %args = @_ == 1 ? %{$_[0]} : @_;