bugfix: 'reset' nr_shapes to '0' after last instance of 'Shape'
Mathias Gumz akira at fluxbox dot org
1 files changed,
3 insertions(+),
1 deletions(-)
jump to
M
src/FbTk/Shape.cc
→
src/FbTk/Shape.cc
@@ -151,7 +151,9 @@ void cleanCorners() {
if (nr_shapes == 1) { s_corners.clear(); - } else { + } + + if (nr_shapes > 0) { nr_shapes--; // refcounting } }