summaryrefslogtreecommitdiff
path: root/openbox
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-05-28 13:37:32 +0000
committerDana Jansens <danakj@orodu.net>2007-05-28 13:37:32 +0000
commitc726a1f709484da690a6fbcc7f6b8b4934660290 (patch)
tree02f0a6a2441a2519829e5eca0d8bb8d1ae57fb44 /openbox
parent9d8e1da42a40f886b0dd1a5f5b1fd79be59cd1e0 (diff)
set the current theme in a root property
Diffstat (limited to 'openbox')
-rw-r--r--openbox/openbox.c3
-rw-r--r--openbox/prop.c1
-rw-r--r--openbox/prop.h1
-rw-r--r--openbox/screen.c1
4 files changed, 6 insertions, 0 deletions
diff --git a/openbox/openbox.c b/openbox/openbox.c
index ce92d522..42a062be 100644
--- a/openbox/openbox.c
+++ b/openbox/openbox.c
@@ -273,6 +273,9 @@ gint main(gint argc, gchar **argv)
}
if (ob_rr_theme == NULL)
ob_exit_with_error(_("Unable to load a theme."));
+
+ PROP_SETS(RootWindow(ob_display, ob_screen),
+ ob_theme, theme->name);
}
if (reconfigure) {
diff --git a/openbox/prop.c b/openbox/prop.c
index b0960bc1..aec146d5 100644
--- a/openbox/prop.c
+++ b/openbox/prop.c
@@ -171,6 +171,7 @@ void prop_startup()
*/
CREATE(openbox_pid, "_OPENBOX_PID");
+ CREATE(ob_theme, "_OB_THEME");
CREATE(ob_wm_action_undecorate, "_OB_WM_ACTION_UNDECORATE");
CREATE(ob_wm_state_undecorated, "_OB_WM_STATE_UNDECORATED");
CREATE(ob_control, "_OB_CONTROL");
diff --git a/openbox/prop.h b/openbox/prop.h
index 93821c87..b9d6795e 100644
--- a/openbox/prop.h
+++ b/openbox/prop.h
@@ -193,6 +193,7 @@ typedef struct Atoms {
Atom ob_wm_action_undecorate;
Atom ob_wm_state_undecorated;
Atom openbox_pid; /* this is depreecated in favour of ob_control */
+ Atom ob_theme;
Atom ob_control;
} Atoms;
Atoms prop_atoms;
diff --git a/openbox/screen.c b/openbox/screen.c
index 2ada7438..e5a9af3b 100644
--- a/openbox/screen.c
+++ b/openbox/screen.c
@@ -294,6 +294,7 @@ gboolean screen_annex()
supported[i++] = prop_atoms.ob_wm_action_undecorate;
supported[i++] = prop_atoms.ob_wm_state_undecorated;
supported[i++] = prop_atoms.openbox_pid;
+ supported[i++] = prop_atoms.ob_theme;
supported[i++] = prop_atoms.ob_control;
g_assert(i == num_support);