Skip to content

Commit

Permalink
Modify output of option --get-window-list
Browse files Browse the repository at this point in the history
Change output order from alpha-numeric to the order the windows were
created.
  • Loading branch information
caclark committed Jan 10, 2025
1 parent 41ad5f5 commit 9102763
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/layout.cc
Original file line number Diff line number Diff line change
Expand Up @@ -236,11 +236,6 @@ static void layout_box_folders_changed_cb(GtkWidget *widget, gpointer)
}
}

static gint window_list_sort_cb(gconstpointer a, gconstpointer b)
{
return CASE_SORT((gchar *)a, (gchar *)b);
}

GString *layout_get_window_list()
{
LayoutWindow *lw;
Expand All @@ -252,7 +247,7 @@ GString *layout_get_window_list()
while (work)
{
lw = static_cast<LayoutWindow *>(work->data);
window_list = g_list_insert_sorted(window_list, g_strdup(lw->options.id), window_list_sort_cb);
window_list = g_list_append(window_list, g_strdup(lw->options.id));
work = work->next;
}

Expand Down

0 comments on commit 9102763

Please sign in to comment.