all repos — openbox @ b2453eec0ec7cc33140041c644cfa14bac232824

openbox fork - make it a bit more like ryudo

that segfaulted. oops. added a workaround so setImageDither doesnt reconfig when saving off all the rc values
Dana Jansens danakj@orodu.net
commit

b2453eec0ec7cc33140041c644cfa14bac232824

parent

3f6f897d88d820a7a7e8b388aff12c8d56f96fa4

2 files changed, 5 insertions(+), 4 deletions(-)

jump to
M src/Screen.ccsrc/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.hsrc/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; }