mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
fix(widgets): allow clicking on the label/name in the workspace widget to switch between them
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user