}
-void BScreen::setImageDither(bool d) {
+void BScreen::setImageDither(bool d, bool reconfig) {
resource.image_dither = d;
std::ostrstream s;
s << "session.screen" << getScreenNumber() << ".imageDither" << ends;
config.setValue(s.str(), resource.image_dither);
s.rdbuf()->freeze(0);
- openbox.reconfigure();
+ if (reconfig)
+ openbox.reconfigure();
}
void BScreen::save() {
setSloppyFocus(resource.sloppy_focus);
setAutoRaise(resource.auto_raise);
- setImageDither(resource.image_dither);
+ setImageDither(resource.image_dither, false);
setOpaqueMove(resource.opaque_move);
setFullMax(resource.full_max);
setFocusNew(resource.focus_new);
void setAutoRaise(bool a);
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; }