| 677 | } |
| 678 | |
| 679 | WindowPosition 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 | |
| 688 | WindowPosition MainWindow::nextInitialChildPosition(SeparateId childId) { |
| 689 | const auto rect = geometry().marginsRemoved(frameMargins()); |
nothing calls this directly
no test coverage detected