From 89c5a1e8fa0d36281b269a05602ed16c3312a095 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Tue, 8 Jan 2002 00:04:03 +0000 Subject: Fixed rootcommand for theme --- src/Screen.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Screen.cc b/src/Screen.cc index 6f83536..944821d 100644 --- a/src/Screen.cc +++ b/src/Screen.cc @@ -188,7 +188,8 @@ BScreen::BScreen(Fluxbox *b, int scrn) : ScreenInfo(b, scrn) { image_control->setDither(resource.image_dither); theme = new Theme(getBaseDisplay()->getXDisplay(), getRootWindow(), getColormap(), getScreenNumber(), - image_control, fluxbox->getStyleFilename()); + image_control, fluxbox->getStyleFilename(), fluxbox->getRootCommand()); + #ifdef GNOME /* create the GNOME window */ Window gnome_win = XCreateSimpleWindow(getBaseDisplay()->getXDisplay(), @@ -429,7 +430,10 @@ BScreen::~BScreen(void) { } void BScreen::reconfigure(void) { - + if (Fluxbox::instance()->getRootCommand()) + theme->setRootCommand(Fluxbox::instance()->getRootCommand()); + else + theme->setRootCommand(""); theme->load(fluxbox->getStyleFilename()); theme->reconfigure(); I18n *i18n = I18n::instance(); -- cgit v0.11.2