Include workspace con in workspace event
Send the affected workspace in the "current" property for each workspace event for any type of workspace event that affects a particular workspace. fixes #1411
This commit is contained in:
committed by
Michael Stapelberg
parent
04fa40d3e5
commit
823b46a544
@ -50,6 +50,7 @@ subtest 'Workspace empty event upon switch', sub {
|
||||
|
||||
my $event = $cond->recv;
|
||||
is($event->{change}, 'empty', '"Empty" event received upon workspace switch');
|
||||
is($event->{current}->{name}, $ws1, '"current" property should be set to the workspace con');
|
||||
};
|
||||
|
||||
################################################################################
|
||||
@ -116,6 +117,7 @@ subtest 'Workspace empty event upon window close', sub {
|
||||
|
||||
my $event = $cond->recv;
|
||||
is($event->{change}, 'empty', '"Empty" event received upon window close');
|
||||
is($event->{current}->{name}, $ws1, '"current" property should be set to the workspace con');
|
||||
};
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user