mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-18 12:32:09 +01:00
Make clicking outside the global search tooltip work again
This commit is contained in:
parent
4cabb98b43
commit
da825d4659
@ -354,7 +354,6 @@ void ForwardMouseEvent(const QMouseEvent* e, QWidget* target) {
|
||||
QMouseEvent c(e->type(), target->mapFromGlobal(e->globalPos()),
|
||||
e->globalPos(), e->button(), e->buttons(), e->modifiers());
|
||||
|
||||
target->setAttribute(Qt::WA_UnderMouse, true);
|
||||
QApplication::sendEvent(target, &c);
|
||||
}
|
||||
|
||||
|
@ -159,6 +159,9 @@ bool GlobalSearchTooltip::event(QEvent* e) {
|
||||
QWidget* child = event_target_->childAt(
|
||||
event_target_->mapFromGlobal(me->globalPos()));
|
||||
|
||||
if (child)
|
||||
child->setAttribute(Qt::WA_UnderMouse, true);
|
||||
|
||||
Utilities::ForwardMouseEvent(me, child ? child : event_target_);
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user