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
1 changed files with 5 additions and 0 deletions

View 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]} : @_;