Kephal or pager bug

Aaron J. Seigo aseigo at kde.org
Sat Jul 3 06:13:49 CEST 2010


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20100702/ad32fe59/attachment.sig 


More information about the Plasma-devel mailing list