diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-04-08 07:31:26 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-04-08 07:31:26 +0000 |
| commit | 71badb0790c8595a0ab6dedfbf8027c698369210 (patch) | |
| tree | 2985012f6a12b5b0157541885d663c141b5bb0c7 /openbox/screen.c | |
| parent | 672f1de2812adc49170414d7abbb2df7db69f34c (diff) | |
move config option loading for the kernel into config.c/h
add options for the number of desktops and the names of the desktops
Diffstat (limited to 'openbox/screen.c')
| -rw-r--r-- | openbox/screen.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/openbox/screen.c b/openbox/screen.c index 4b551b7e..49d3d22d 100644 --- a/openbox/screen.c +++ b/openbox/screen.c @@ -1,5 +1,6 @@ #include "openbox.h" #include "prop.h" +#include "config.h" #include "screen.h" #include "client.h" #include "frame.h" @@ -148,13 +149,23 @@ gboolean screen_annex() void screen_startup() { + GSList *it; + screen_desktop_names = g_ptr_array_new(); /* get the initial size */ screen_resize(); + /* set the names */ + for (it = config_desktops_names; it; it = it->next) + g_ptr_array_add(screen_desktop_names, it->data); /* dont strdup */ + PROP_SETSA(ob_root, net_desktop_names, utf8, screen_desktop_names); + g_ptr_array_set_size(screen_desktop_names, 0); /* rm the ptrs so they dont + get frees when we + update the desktop + names */ screen_num_desktops = 0; - screen_set_num_desktops(4); + screen_set_num_desktops(config_desktops_num); screen_desktop = 0; screen_set_desktop(0); |
