From: Dana Jansens Date: Wed, 30 Mar 2011 15:23:11 +0000 (-0400) Subject: don't re-run the startup command on reconfigure X-Git-Tag: mikabox-3.5-7~150 X-Git-Url: http://git.openbox.org/?p=mikachu%2Fopenbox.git;a=commitdiff_plain;h=823997f0011b0c948ebd9d3a3b155884a336ed2f don't re-run the startup command on reconfigure --- diff --git a/openbox/openbox.c b/openbox/openbox.c index d5ed2b8..c41eea4 100644 --- a/openbox/openbox.c +++ b/openbox/openbox.c @@ -355,11 +355,11 @@ gint main(gint argc, gchar **argv) } } - reconfigure = FALSE; - ob_set_state(OB_STATE_RUNNING); - if (startup_cmd) run_startup_cmd(); + if (!reconfigure && startup_cmd) run_startup_cmd(); + + reconfigure = FALSE; /* look for parsing errors */ {