From 0b0e48bc49ef3fe725cceaa58d725ce9cc6da60f Mon Sep 17 00:00:00 2001 From: Colin Clark Date: Mon, 17 Aug 2020 15:33:33 +0100 Subject: [PATCH] Part fix #796: Restored windows all show the same location https://github.com/BestImageViewer/geeqie/issues/796 If multiple windows are defined in the config. file, command line options are used only in the main window. --- src/layout.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/layout.c b/src/layout.c index 91419f46..2b535dc2 100644 --- a/src/layout.c +++ b/src/layout.c @@ -2900,7 +2900,10 @@ LayoutWindow *layout_new_from_config(const gchar **attribute_names, const gchar if (attribute_names) layout_load_attributes(&lop, attribute_names, attribute_values); - if (use_commandline) + /* If multiple windows are specified in the config. file, + * use the command line options only in the main window. + */ + if (use_commandline && (g_strcmp0(lop.id, "main") == 0)) { layout_config_commandline(&lop, &path); } -- 2.20.1