# HG changeset patch # User nadvornik # Date 1237659724 0 # Node ID b4001cb9fbc48e9f017cd1b21a9c5d7fcd9a9b97 # Parent 65a5c27823c270abf0991991a4744b4cf040a576 do not copy existing layout id to new window diff -r 65a5c27823c2 -r b4001cb9fbc4 src/layout_util.c --- a/src/layout_util.c Sat Mar 21 17:47:50 2009 +0000 +++ b/src/layout_util.c Sat Mar 21 18:22:04 2009 +0000 @@ -194,13 +194,17 @@ { LayoutWindow *lw = data; LayoutWindow *nw; + LayoutOptions lop; gboolean tmp = options->save_window_positions; options->save_window_positions = FALSE; /* let the windowmanager decide for the first time */ - + layout_exit_fullscreen(lw); layout_sync_options_with_current_state(lw); - nw = layout_new(NULL, &lw->options); + lop = lw->options; /* we can copy it directly, no strings are modified */ + + lop.id = NULL; /* get a new id */ + nw = layout_new(NULL, &lop); layout_sort_set(nw, options->file_sort.method, options->file_sort.ascending); layout_set_fd(nw, lw->dir_fd); options->save_window_positions = tmp;