that segfaulted. oops. added a workaround so setImageDither doesnt reconfig when saving off all the rc values
Dana Jansens danakj@orodu.net
2 files changed,
5 insertions(+),
4 deletions(-)
M
src/Screen.cc
→
src/Screen.cc
@@ -850,13 +850,14 @@ s.rdbuf()->freeze(0);
} -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(); }@@ -1042,7 +1043,7 @@
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);
M
src/Screen.h
→
src/Screen.h
@@ -219,7 +219,7 @@ inline bool autoRaise() const { return resource.auto_raise; }
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; }