mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Make the UserInfoPopup identify itself as a popup, hinting tiling window manager to not tile it
This commit is contained in:
parent
e28bc805f6
commit
e32841ab81
|
@ -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";
|
||||
|
|
|
@ -28,6 +28,8 @@ UserInfoPopup::UserInfoPopup()
|
|||
{
|
||||
this->setStayInScreenRect(true);
|
||||
|
||||
this->setWindowFlag(Qt::Popup);
|
||||
|
||||
auto app = getApp();
|
||||
|
||||
auto layout = util::LayoutCreator<UserInfoPopup>(this).setLayoutType<QVBoxLayout>();
|
||||
|
|
Loading…
Reference in a new issue