<div dir="ltr">I don't consider yet multiple screens, the reason for using this is that showFullScreen() alone does not work on AP.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Apr 9, 2013 at 4:17 PM, Martin Graesslin <span dir="ltr"><<a href="mailto:mgraesslin@kde.org" target="_blank">mgraesslin@kde.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Tuesday 09 April 2013 15:54:42 you wrote:<br>
> Actually I am using first<br>
><br>
> showFullScreen()<br>
><br>
> before setting the geometry, otherwise on AP my window is wrongly resized.<br>
</div>it still sounds quite wrong. Don't set geometries manually unless you really<br>
have to. The code you pasted would break on a desktop for example as it<br>
doesn't handle multiple screens. In general we just don't like that (and<br>
that's one of the reasons why I just look forward to Wayland).<br>
<br>
Cheers<br>
<span class="HOEnZb"><font color="#888888">Martin<br>
</font></span><div class="HOEnZb"><div class="h5">><br>
> On Tue, Apr 9, 2013 at 3:50 PM, Martin Graesslin <<a href="mailto:mgraesslin@kde.org">mgraesslin@kde.org</a>> wrote:<br>
> > On Tuesday 09 April 2013 15:30:56 Bogdan Cristea wrote:<br>
> > > For full screen mode currently I use<br>
> > ><br>
> > > QRect rect(0, 0, QApplication::desktop()->width(),<br>
> ><br>
> > QApplication::desktop()-<br>
> ><br>
> > > >height());<br>
> > ><br>
> > > setGeometry(rect);<br>
> ><br>
> > this is not a way to set a window to fullscreen. How should the window<br>
> > manager<br>
> > know that this is fullscreen? It sees such a geometry and says: wow that's<br>
> > wrong, it would overlap with the panel. That's obviously not what the<br>
> > application wants and so I give it the area without the panel.<br>
> ><br>
> > If you want to set a window to fullscreen use the proper EWMH hint. I'm<br>
> > not<br>
> > sure whether Qt provides a hint for it, but KWindowSystem does.<br>
> ><br>
> > Cheers Martin<br>
> ><br>
> > _______________________________________________<br>
> > Active mailing list<br>
> > <a href="mailto:Active@kde.org">Active@kde.org</a><br>
> > <a href="https://mail.kde.org/mailman/listinfo/active" target="_blank">https://mail.kde.org/mailman/listinfo/active</a><br>
_______________________________________________<br>
Active mailing list<br>
<a href="mailto:Active@kde.org">Active@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/active" target="_blank">https://mail.kde.org/mailman/listinfo/active</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Bogdan Cristea
</div>