Fixed rootcommand for theme
This commit is contained in:
parent
b197eab01d
commit
89c5a1e8fa
1 changed files with 6 additions and 2 deletions
|
@ -188,7 +188,8 @@ BScreen::BScreen(Fluxbox *b, int scrn) : ScreenInfo(b, scrn) {
|
||||||
|
|
||||||
image_control->setDither(resource.image_dither);
|
image_control->setDither(resource.image_dither);
|
||||||
theme = new Theme(getBaseDisplay()->getXDisplay(), getRootWindow(), getColormap(), getScreenNumber(),
|
theme = new Theme(getBaseDisplay()->getXDisplay(), getRootWindow(), getColormap(), getScreenNumber(),
|
||||||
image_control, fluxbox->getStyleFilename());
|
image_control, fluxbox->getStyleFilename(), fluxbox->getRootCommand());
|
||||||
|
|
||||||
#ifdef GNOME
|
#ifdef GNOME
|
||||||
/* create the GNOME window */
|
/* create the GNOME window */
|
||||||
Window gnome_win = XCreateSimpleWindow(getBaseDisplay()->getXDisplay(),
|
Window gnome_win = XCreateSimpleWindow(getBaseDisplay()->getXDisplay(),
|
||||||
|
@ -429,7 +430,10 @@ BScreen::~BScreen(void) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void BScreen::reconfigure(void) {
|
void BScreen::reconfigure(void) {
|
||||||
|
if (Fluxbox::instance()->getRootCommand())
|
||||||
|
theme->setRootCommand(Fluxbox::instance()->getRootCommand());
|
||||||
|
else
|
||||||
|
theme->setRootCommand("");
|
||||||
theme->load(fluxbox->getStyleFilename());
|
theme->load(fluxbox->getStyleFilename());
|
||||||
theme->reconfigure();
|
theme->reconfigure();
|
||||||
I18n *i18n = I18n::instance();
|
I18n *i18n = I18n::instance();
|
||||||
|
|
Loading…
Reference in a new issue