On July 1, 2010, Asraniel wrote: > I created a stand alone qt app that uses qdesktopwidget. I could observe > that the size of QApplication::desktop()->geometry(); changes when the > workAreaResized() signal is emited. But when screenCountChanged() is > emited, it is not. So when you get a screen added signal, the desktop size > has not yet changed. > For me, thats a bug.But it could just be wanted that way. So either the > pager needs to be fixed to know that, or kephal changed because for me it > seem unintuitive the way it is now, or qt needs to be changed. > If somebody wants the stand alone test app, tell me.
i suppose that technically Kephal is correct: it's emitting the signal when the number of screens has changed. however, i do agree with you that it's unintuitive that it does so when the screen hasn't actually "taken effect" yet. it seems that the Kephal::Screen itself is set up properly (has the right size, e.g.) but that Kephal::ScreenUtils::desktopGeometry() isn't correct? desktopGeometry is just a call to QDesktopWidget::geometry() ... so Kephal is, at that moment, in an inconsistent state. i wonder if simply delaying the emitting of the screenAdded signal in Kephal would be enough to give desktopGeometry() enough time to "catch up". -- Aaron J. Seigo humru othro a kohnu se GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA EE75 D6B7 2EB1 A7F1 DB43 KDE core developer sponsored by Qt Development Frameworks
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel