all repos — openbox @ 8287fb288943febac397e36eb7674af3f2bb7493

openbox fork - make it a bit more like ryudo

check before deleting
Dana Jansens danakj@orodu.net
commit

8287fb288943febac397e36eb7674af3f2bb7493

parent

17a3f1e268906e7f002da3ad42470f77a1d61e8b

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M otk/widget.ccotk/widget.cc

@@ -277,7 +277,8 @@ renderForeground(); // for inherited types to render onto the _surface

XSetWindowBackgroundPixmap(**display, _window, _surface->pixmap()); - delete s; // delete the old surface *after* its pixmap isn't in use anymore + if (s) + delete s; // delete the old surface *after* its pixmap isn't in use anymore } void Widget::adjust(void)