diff --git a/src/widget.cpp b/src/widget.cpp --- a/src/widget.cpp +++ b/src/widget.cpp @@ -1418,6 +1418,8 @@ void NWidgetMatrix::SetupSmallestSize(Wi w->nested_array[this->index] = this; } + /* Reset the widget number. */ + SB(dynamic_cast(this->head)->index, 16, 16, 0); this->head->SetupSmallestSize(w, init_array); Dimension padding = {this->pip_pre + this->pip_post, this->pip_pre + this->pip_post};