diff options
Diffstat (limited to 'src/session.c')
-rw-r--r-- | src/session.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/src/session.c b/src/session.c index 5dbce1c7..1e86c14e 100644 --- a/src/session.c +++ b/src/session.c @@ -1005,17 +1005,10 @@ save_state (void) /* Workspaces we're on */ { - GList *w; - w = window->workspaces; - while (w != NULL) - { - int n; - n = meta_workspace_index (w->data); - fprintf (outfile, - " <workspace index=\"%d\"/>\n", n); - - w = w->next; - } + int n; + n = meta_workspace_index (window->workspace); + fprintf (outfile, + " <workspace index=\"%d\"/>\n", n); } /* Gravity */ |