fix(widgets): allow clicking on the label/name in the workspace widget to switch between them

This commit is contained in:
Ly-sec
2026-05-03 15:45:54 +02:00
parent b92fe18ee2
commit 0f3becd801
@@ -213,6 +213,9 @@ void WorkspacesWidget::rebuild(Renderer& renderer) {
if (showLabel) {
auto text = std::make_unique<Label>();
// Label is an InputArea; without this, clicks on glyphs hit the label and
// never reach the workspace slot's onClick on the parent InputArea.
text->setHitTestVisible(false);
text->setText(labels[i]);
text->setFontSize(labelFontSize);
text->setBold(true);