<br><br><div class="gmail_quote">2009/2/1 Guillaume Pothier <span dir="ltr">&lt;<a href="mailto:gpothier@gmail.com">gpothier@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Alessandro, sorry I didn&#39;t reply earlier,</blockquote><div><br>&nbsp;Hi Guillaume, np :)<br>&nbsp;<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
 I was offline this week.<br>
I think your fix is not in the ideal place. I think that what happens<br>
is that you are using a driver that is not xrandr1.2-aware (please<br>
tell me if I&#39;m wrong),</blockquote><div><br>&nbsp;how can I check that?<br>&nbsp;<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> and therefore Kephal falls back to<br>

QDesktopWidget for screen management; unfortunately QDesktopWidget has<br>
this problem that it still reports the old screen information while<br>
the notifications are processed. But the fix for this should be in<br>
Kephal, not in plasma (otherwise the problem would reappear in other<br>
components such as kwin).</blockquote><div><br>&nbsp; I deeply checked and Kephal actually returns correct screen info (2 screens,<br>&nbsp; the first (0, 0, 1280, 1024), the second(1280, 0, 1680, 1050)). Moreover adjustSize() uses Plasma::View::screen()<br>
&nbsp; in order to resize the view, and before delaying adjustSize, that screen was just wrong.<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
I actually had a patch to fix this but I was waiting for somebody to<br>
test it before committing. Can you check this bug:<br>
<a href="http://bugs.kde.org/show_bug.cgi?id=181325" target="_blank">http://bugs.kde.org/show_bug.cgi?id=181325</a> and test the patch,<br>
reverting your own patch, and see if it works for you?</blockquote><div><br>
&nbsp;It does not do me the trick.. I still have second screen
displacement.. I feel the issues are not correlated, anyway i&#39;d wait for<br>
&nbsp;someone else, more expert than me, to talk :)&nbsp; <br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Cheers,<br>
g<br>
</blockquote><div><br>Cheers :)<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
2009/1/30 Alessandro Diaferia &lt;<a href="mailto:alediaferia@gmail.com">alediaferia@gmail.com</a>&gt;:<br>
<div><div></div><div class="Wj3C7c">&gt; As you can see from the sources Plasma::View uses QTimer::singleShot(0,<br>
&gt; this, SLOT(privateInit())) in the ctor but DesktopView calls adjustSize() in<br>
&gt; the ctor with no delay..<br>
&gt;<br>
&gt; This causes the fact that adjustSize() uses invalid information about the<br>
&gt; current screen to setup its size and makes my second screen disappear (or<br>
&gt; actually, with a wrong size/position).<br>
&gt; I managed to fix this giving a delay also to adjustSize() so that when it is<br>
&gt; called the correct information are already set (and screen() returns the<br>
&gt; correct number in this case).<br>
&gt;<br>
&gt; Hope this is ok to commit, since i&#39;d like to have my screen back officially<br>
&gt; :P<br>
&gt;<br>
&gt; Since i&#39;m having troubles with the reviewboard here comes the patch:<br>
&gt;<br>
&gt; Index: shells/desktop/desktopview.cpp<br>
&gt; ===================================================================<br>
&gt;<br>
&gt; --- shells/desktop/desktopview.cpp &nbsp; &nbsp;(revision 918687)<br>
&gt; +++ shells/desktop/desktopview.cpp &nbsp; &nbsp;(working copy)<br>
&gt; @@ -104,7 +104,7 @@ DesktopView::DesktopView(Plasma::Contain<br>
&gt; &nbsp; &nbsp; &nbsp;QBrush b(tile);<br>
&gt; &nbsp; &nbsp; &nbsp;setBackgroundBrush(tile);<br>
&gt;<br>
&gt;<br>
&gt; - &nbsp; &nbsp;adjustSize();<br>
&gt; + &nbsp; &nbsp;QTimer::singleShot(0, this, SLOT(adjustSize()));<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;Kephal::Screens *screens = Kephal::Screens::self();<br>
&gt; &nbsp; &nbsp; &nbsp;connect(screens, SIGNAL(screenResized(Kephal::Screen *, QSize, QSize)),<br>
&gt;<br>
&gt;<br>
&gt; Hugs!!<br>
&gt;<br>
&gt; --<br>
&gt; Alessandro Diaferia<br>
&gt;<br>
</div></div><div><div></div><div class="Wj3C7c">&gt; _______________________________________________<br>
&gt; Plasma-devel mailing list<br>
&gt; <a href="mailto:Plasma-devel@kde.org">Plasma-devel@kde.org</a><br>
&gt; <a href="https://mail.kde.org/mailman/listinfo/plasma-devel" target="_blank">https://mail.kde.org/mailman/listinfo/plasma-devel</a><br>
&gt;<br>
&gt;<br>
_______________________________________________<br>
Plasma-devel mailing list<br>
<a href="mailto:Plasma-devel@kde.org">Plasma-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/plasma-devel" target="_blank">https://mail.kde.org/mailman/listinfo/plasma-devel</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Alessandro Diaferia<br>