Skip to content

Commit

Permalink
fix: [workspace] incorret logic
Browse files Browse the repository at this point in the history
Log: as title
  • Loading branch information
LiHua000 authored and deepin-mozart committed Jul 22, 2024
1 parent 8b0083a commit 563c6e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/core/gui/dockheader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ void DockHeader::setHeaderNames(const QList<QAction *> &headers)

void DockHeader::mousePressEvent(QMouseEvent *event)
{
if (event->pos().x() < d->headerName->width() && d->select->isVisible())
if (d->headerName->geometry().contains(event->pos()) && d->select->isVisible())
d->select->click();

DWidget::mousePressEvent(event);
Expand Down

0 comments on commit 563c6e5

Please sign in to comment.