mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Add Calls::Panel and handle incoming calls.
This commit is contained in:
@@ -777,3 +777,12 @@ Messenger::~Messenger() {
|
||||
MainWindow *Messenger::mainWindow() {
|
||||
return _window.get();
|
||||
}
|
||||
|
||||
QPoint Messenger::getPointForCallPanelCenter() const {
|
||||
Expects(_window != nullptr);
|
||||
Expects(_window->windowHandle() != nullptr);
|
||||
if (_window->isActive()) {
|
||||
return _window->geometry().center();
|
||||
}
|
||||
return _window->windowHandle()->screen()->geometry().center();
|
||||
}
|
||||
|
Reference in New Issue
Block a user