]> git.lizzy.rs Git - bspwm.git/blobdiff - src/restore.c
Fix the ordering of the EWMH function calls
[bspwm.git] / src / restore.c
index 7f291f9bf1dc0550bbb10423d64a2905ded8c54c..4ac0ee4e6e0eedb2eab9bf83346a803fbf093c61 100644 (file)
@@ -198,13 +198,13 @@ bool restore_tree(const char *file_path)
                }
        }
 
-       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);