From aa2fd4c36b2b82e5c288dbc8d09478245f4ba929 Mon Sep 17 00:00:00 2001 From: Vladimir Nadvornik Date: Sat, 21 Mar 2009 18:22:04 +0000 Subject: [PATCH] do not copy existing layout id to new window --- src/layout_util.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/layout_util.c b/src/layout_util.c index fe06a22c..8b7fe28e 100644 --- a/src/layout_util.c +++ b/src/layout_util.c @@ -194,13 +194,17 @@ static void layout_menu_new_window_cb(GtkAction *action, gpointer data) { 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; -- 2.20.1