swaybar: handle hotplugging

Don't kill and respawn swaybars on hotplug.
This commit is contained in:
emersion 2018-09-19 11:37:24 +02:00
parent fa4308c5ab
commit 82f1393cbb
6 changed files with 81 additions and 66 deletions

View file

@ -424,6 +424,7 @@ int main(int argc, char **argv) {
}
config->active = true;
load_swaybars();
// Execute commands until there are none left
wlr_log(WLR_DEBUG, "Running deferred commands");
while (config->cmd_queue->length) {