lib/i3test: clarify how to identify open_window() windows in i3 commands (Thanks vandannen)
This commit is contained in:
parent
4937788e8d
commit
80e7d2d346
@ -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]} : @_;
|
||||||
|
Loading…
Reference in New Issue
Block a user