i3bar: free output data structures
This commit is contained in:
@ -64,17 +64,14 @@ void got_subscribe_reply(char *reply) {
|
||||
*/
|
||||
void got_output_reply(char *reply) {
|
||||
DLOG("Clearing old output configuration...\n");
|
||||
i3_output *o_walk;
|
||||
SLIST_FOREACH(o_walk, outputs, slist) {
|
||||
destroy_window(o_walk);
|
||||
}
|
||||
FREE_SLIST(outputs, i3_output);
|
||||
free_outputs();
|
||||
|
||||
DLOG("Parsing outputs JSON...\n");
|
||||
parse_outputs_json(reply);
|
||||
DLOG("Reconfiguring windows...\n");
|
||||
reconfig_windows(false);
|
||||
|
||||
i3_output *o_walk;
|
||||
SLIST_FOREACH(o_walk, outputs, slist) {
|
||||
kick_tray_clients(o_walk);
|
||||
}
|
||||
|
Reference in New Issue
Block a user