Clean bars before reloading the config (+test)

While the configuration gets updated in i3, the i3bar processes will not pick
up these changes. We have to think about a good way to do that.
This commit is contained in:
Michael Stapelberg
2011-10-20 18:47:09 +01:00
parent a5be27cb79
commit ad0f13a0a9
2 changed files with 34 additions and 0 deletions

View File

@ -54,6 +54,14 @@ ok($bar_config->{workspace_buttons}, 'workspace buttons enabled per default');
is($bar_config->{mode}, 'hide', 'hide mode by default');
is($bar_config->{position}, 'bottom', 'position bottom by default');
#####################################################################
# ensure that reloading cleans up the old bar configs
#####################################################################
cmd 'reload';
$bars = $i3->get_bar_config()->recv;
is(@$bars, 1, 'still one bar configured');
exit_gracefully($pid);
#####################################################################