Skip to content

Commit

Permalink
Remove chat window auto-positioning
Browse files Browse the repository at this point in the history
This does not work reliably cross-platform. Just let the window manager position it.
  • Loading branch information
callaa committed Jun 23, 2019
1 parent bf7c198 commit a9f3e26
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/desktop/chat/chatbox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ void ChatBox::detachFromParent()

m_state = State::Detached;

const auto pos = mapToGlobal(geometry().topLeft());
const auto siz = size();

QObject *oldParent = parent();
Expand All @@ -112,7 +111,6 @@ void ChatBox::detachFromParent()
connect(oldParent, &QObject::destroyed, window, &QObject::deleteLater);

window->show();
window->move(pos);
window->resize(siz);
}

Expand Down

0 comments on commit a9f3e26

Please sign in to comment.