First provide the new list of items, then declare the active item.
Fix #911.
}
}
- ewmh_update_client_list(false);
- ewmh_update_client_list(true);
- ewmh_update_active_window();
ewmh_update_number_of_desktops();
- ewmh_update_current_desktop();
ewmh_update_desktop_names();
ewmh_update_desktop_viewport();
+ ewmh_update_current_desktop();
+ ewmh_update_client_list(false);
+ ewmh_update_client_list(true);
+ ewmh_update_active_window();
free(tokens);
free(json);
hide_node(d, n);
}
+ ewmh_update_client_list(false);
+ ewmh_set_wm_desktop(n, d);
+
if (!csq->hidden && csq->focus) {
if (d == mon->desk || csq->follow) {
focus_node(m, d, n);
draw_border(n, false, (m == mon));
}
- ewmh_set_wm_desktop(n, d);
- ewmh_update_client_list(false);
free(csq->layer);
free(csq->state);