MCPcopy Create free account
hub / github.com/TDesktop-x64/tdesktop / initialPosition

Method initialPosition

Telegram/SourceFiles/window/main_window.cpp:679–686  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

677}
678
679WindowPosition MainWindow::initialPosition() const {
680 const auto active = Core::App().activeWindow();
681 return (!active || active == &controller())
682 ? Core::AdjustToScale(
683 Core::App().settings().windowPosition(),
684 u"Window"_q)
685 : active->widget()->nextInitialChildPosition(id());
686}
687
688WindowPosition MainWindow::nextInitialChildPosition(SeparateId childId) {
689 const auto rect = geometry().marginsRemoved(frameMargins());

Callers

nothing calls this directly

Calls 6

AppClass · 0.85
AdjustToScaleFunction · 0.85
activeWindowMethod · 0.80
settingsMethod · 0.80
widgetMethod · 0.45

Tested by

no test coverage detected