diff --git a/src/widgets/helper/channelview.cpp b/src/widgets/helper/channelview.cpp index ed61fb0d..d01b3fd7 100644 --- a/src/widgets/helper/channelview.cpp +++ b/src/widgets/helper/channelview.cpp @@ -1150,8 +1150,8 @@ void ChannelView::handleLinkClick(QMouseEvent *event, const messages::Link &link auto *userPopup = new UserInfoPopup; userPopup->setData(user, this->channel_); userPopup->setAttribute(Qt::WA_DeleteOnClose); - userPopup->move(QCursor::pos() - - QPoint(int(150 * this->getScale()), int(70 * this->getScale()))); + QPoint offset(int(150 * this->getScale()), int(70 * this->getScale())); + userPopup->move(QCursor::pos() - offset); userPopup->show(); qDebug() << "Clicked " << user << "s message"; diff --git a/src/widgets/userinfopopup.cpp b/src/widgets/userinfopopup.cpp index 49598a21..b8bf2c64 100644 --- a/src/widgets/userinfopopup.cpp +++ b/src/widgets/userinfopopup.cpp @@ -28,6 +28,8 @@ UserInfoPopup::UserInfoPopup() { this->setStayInScreenRect(true); + this->setWindowFlag(Qt::Popup); + auto app = getApp(); auto layout = util::LayoutCreator(this).setLayoutType();