mirror of
https://github.com/FelixKratz/SketchyBar
synced 2024-11-26 21:30:17 +00:00
allow triggering space_change and display_change events to force a refresh of all spaces
This commit is contained in:
parent
6dbe571227
commit
f6bc244bc1
1 changed files with 9 additions and 1 deletions
|
@ -35,7 +35,15 @@ static void handle_domain_trigger(FILE* rsp, struct token domain, char* message)
|
|||
|
||||
token = get_token(&message);
|
||||
}
|
||||
|
||||
if (token_equals(event, COMMAND_SUBSCRIBE_SPACE_CHANGE)) {
|
||||
bar_manager_handle_space_change(&g_bar_manager, true);
|
||||
}
|
||||
else if (token_equals(event, COMMAND_SUBSCRIBE_DISPLAY_CHANGE)) {
|
||||
bar_manager_handle_display_change(&g_bar_manager);
|
||||
} else {
|
||||
bar_manager_custom_events_trigger(&g_bar_manager, event.text, &env_vars);
|
||||
}
|
||||
env_vars_destroy(&env_vars);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue