that segfaulted. oops. added a workaround so setImageDither doesnt reconfig when saving off all the rc values
This commit is contained in:
parent
3f6f897d88
commit
b2453eec0e
2 changed files with 5 additions and 4 deletions
|
@ -850,13 +850,14 @@ void BScreen::setAutoRaise(bool a) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void BScreen::setImageDither(bool d) {
|
void BScreen::setImageDither(bool d, bool reconfig) {
|
||||||
resource.image_dither = d;
|
resource.image_dither = d;
|
||||||
std::ostrstream s;
|
std::ostrstream s;
|
||||||
s << "session.screen" << getScreenNumber() << ".imageDither" << ends;
|
s << "session.screen" << getScreenNumber() << ".imageDither" << ends;
|
||||||
config.setValue(s.str(), resource.image_dither);
|
config.setValue(s.str(), resource.image_dither);
|
||||||
s.rdbuf()->freeze(0);
|
s.rdbuf()->freeze(0);
|
||||||
openbox.reconfigure();
|
if (reconfig)
|
||||||
|
openbox.reconfigure();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1042,7 +1043,7 @@ void BScreen::saveWorkspaceNames() {
|
||||||
void BScreen::save() {
|
void BScreen::save() {
|
||||||
setSloppyFocus(resource.sloppy_focus);
|
setSloppyFocus(resource.sloppy_focus);
|
||||||
setAutoRaise(resource.auto_raise);
|
setAutoRaise(resource.auto_raise);
|
||||||
setImageDither(resource.image_dither);
|
setImageDither(resource.image_dither, false);
|
||||||
setOpaqueMove(resource.opaque_move);
|
setOpaqueMove(resource.opaque_move);
|
||||||
setFullMax(resource.full_max);
|
setFullMax(resource.full_max);
|
||||||
setFocusNew(resource.focus_new);
|
setFocusNew(resource.focus_new);
|
||||||
|
|
|
@ -219,7 +219,7 @@ public:
|
||||||
void setAutoRaise(bool a);
|
void setAutoRaise(bool a);
|
||||||
|
|
||||||
inline bool imageDither() const { return resource.image_dither; }
|
inline bool imageDither() const { return resource.image_dither; }
|
||||||
void setImageDither(bool d);
|
void setImageDither(bool d, bool reconfig = true);
|
||||||
|
|
||||||
inline bool orderedDither() const { return resource.ordered_dither; }
|
inline bool orderedDither() const { return resource.ordered_dither; }
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue