diff options
| author | Dana Jansens <danakj@orodu.net> | 2008-03-02 15:37:07 -0500 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2008-03-02 15:40:11 -0500 |
| commit | 7ea56abf05b9e6cd4e806dbfa1146562378edc7b (patch) | |
| tree | 8875e2fdc795cd3c291fba0b06f3ba94d196acf4 /openbox/openbox.c | |
| parent | 8562034e30e8b319a746009859cbefc1f41b41f5 (diff) | |
add a RECONFIGURING state, and enter that when doing reconfiguring
Diffstat (limited to 'openbox/openbox.c')
| -rw-r--r-- | openbox/openbox.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/openbox/openbox.c b/openbox/openbox.c index fb1e75d0..eb7934e0 100644 --- a/openbox/openbox.c +++ b/openbox/openbox.c @@ -121,7 +121,7 @@ gint main(gint argc, gchar **argv) { gchar *program_name; - state = OB_STATE_STARTING; + ob_set_state(OB_STATE_STARTING); /* initialize the locale */ if (!setlocale(LC_ALL, "")) @@ -367,9 +367,10 @@ gint main(gint argc, gchar **argv) reconfigure = FALSE; - state = OB_STATE_RUNNING; + ob_set_state(OB_STATE_RUNNING); ob_main_loop_run(ob_main_loop); - state = OB_STATE_EXITING; + ob_set_state(reconfigure ? + OB_STATE_RECONFIGURING : OB_STATE_EXITING); if (!reconfigure) { dock_remove_all(); @@ -709,3 +710,8 @@ ObState ob_state() { return state; } + +void ob_set_state(ObState s) +{ + state = s; +} |
