First run on multiscreen uses full desktop geometry
On first run, before the kwaverc is saved, the top widget will resize itself to the cumulative width x height of all screens. After resizing it to within a single screen, those dimensions are saved and the window manager takes care of positioning. This change would use the available geometry for the widget's own screen only when doing the QRect.intersected() check.
One minor note, both old and new versions are deprecated in qt6.
It's a 1-line fix, so sending it here, but happy to submit a merge request instead.
diff --git a/kwave/TopWidget.cpp b/kwave/TopWidget.cpp
index 1c8e8e5f..efc4b913 100644
--- a/kwave/TopWidget.cpp
+++ b/kwave/TopWidget.cpp
@@ -438,7 +438,7 @@ bool Kwave::TopWidget::init()
updateRecentFiles();
// make sure that everything of our window is visible
- QRect desk = qApp->desktop()->rect();
+ QRect desk = qApp->desktop()->availableGeometry(this);
QRect g = this->geometry();
if (!desk.contains(g)) {
// KDE's stupid geometry management has failed ?