diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-09-03 18:11:39 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-09-03 18:11:39 +0000 |
| commit | 806a8c411f10c7a2292bfac15d77c8609f56ee71 (patch) | |
| tree | d56c0f2a4b05b00fef085ea69930603f10ee8f75 /openbox/dock.c | |
| parent | 40902496a01b21b950f3672bf2ae9e100ba9b95c (diff) | |
add a reconfigure action, also reconfigure on SIGUSR2.
support reconfiguring throughout the entire codebase.
Diffstat (limited to 'openbox/dock.c')
| -rw-r--r-- | openbox/dock.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/openbox/dock.c b/openbox/dock.c index df176d66..0bb28d43 100644 --- a/openbox/dock.c +++ b/openbox/dock.c @@ -16,10 +16,15 @@ static ObDock *dock; StrutPartial dock_strut; -void dock_startup() +void dock_startup(gboolean reconfig) { XSetWindowAttributes attrib; + if (reconfig) { + dock_configure(); + return; + } + STRUT_PARTIAL_SET(dock_strut, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); @@ -46,8 +51,10 @@ void dock_startup() stacking_raise(DOCK_AS_WINDOW(dock)); } -void dock_shutdown() +void dock_shutdown(gboolean reconfig) { + if (reconfig) return; + XDestroyWindow(ob_display, dock->frame); RrAppearanceFree(dock->a_frame); g_hash_table_remove(window_map, &dock->frame); |
