Re: AP - full screen mode

2013-04-09 Thread Thomas Pfeiffer

On 09.04.2013 16:43, Bogdan Cristea wrote:

On Tuesday 09 April 2013 16:32:24 Marco Martin wrote:

On Tuesday 09 April 2013, Bogdan Cristea wrote:

I don't consider yet multiple screens, the reason for using this is that
showFullScreen() alone does not work on AP.


i would like fullscreen windows working correctly, but apart from that, an
application should never ever worry about its geometry, it it does, there is
something wrong


Thanks for clarifying this issue, but on AP there seems to be an issue with
showFullScreen() as on openSUSE 12.3 there is no need to use setGeometry() for
full screen.


Hi Bogdan,
long story short: Please use neither showFullScreen nor setGeometry in 
PA at this point. Simply try to live without fullscreen for now until 
we've figured out a safe standard way for fullscreen apps in Plasma Active.


I hope we can have that standard way ready for PA 5, so you can use 
fullscreen then.


___
Active mailing list
Active@kde.org
https://mail.kde.org/mailman/listinfo/active


Re: AP - full screen mode

2013-04-09 Thread Bogdan Cristea
On Tuesday 09 April 2013 16:32:24 Marco Martin wrote:
> On Tuesday 09 April 2013, Bogdan Cristea wrote:
> > I don't consider yet multiple screens, the reason for using this is that
> > showFullScreen() alone does not work on AP.
> 
> i would like fullscreen windows working correctly, but apart from that, an
> application should never ever worry about its geometry, it it does, there is
> something wrong

Thanks for clarifying this issue, but on AP there seems to be an issue with 
showFullScreen() as on openSUSE 12.3 there is no need to use setGeometry() for 
full screen.

-- 
Bogdan
___
Active mailing list
Active@kde.org
https://mail.kde.org/mailman/listinfo/active


Re: AP - full screen mode

2013-04-09 Thread Marco Martin
On Tuesday 09 April 2013, Bogdan Cristea wrote:
> I don't consider yet multiple screens, the reason for using this is that
> showFullScreen() alone does not work on AP.
> 

i would like fullscreen windows working correctly, but apart from that, an 
application should never ever worry about its geometry, it it does, there is 
something wrong

-- 
Marco Martin
___
Active mailing list
Active@kde.org
https://mail.kde.org/mailman/listinfo/active


Re: AP - full screen mode

2013-04-09 Thread Bogdan Cristea
I don't consider yet multiple screens, the reason for using this is that
showFullScreen() alone does not work on AP.


On Tue, Apr 9, 2013 at 4:17 PM, Martin Graesslin  wrote:

> On Tuesday 09 April 2013 15:54:42 you wrote:
> > Actually I am using first
> >
> > showFullScreen()
> >
> > before setting the geometry, otherwise on AP my window is wrongly
> resized.
> it still sounds quite wrong. Don't set geometries manually unless you
> really
> have to. The code you pasted would break on a desktop for example as it
> doesn't handle multiple screens. In general we just don't like that (and
> that's one of the reasons why I just look forward to Wayland).
>
> Cheers
> Martin
> >
> > On Tue, Apr 9, 2013 at 3:50 PM, Martin Graesslin 
> wrote:
> > > On Tuesday 09 April 2013 15:30:56 Bogdan Cristea wrote:
> > > > For full screen mode currently I use
> > > >
> > > > QRect rect(0, 0, QApplication::desktop()->width(),
> > >
> > > QApplication::desktop()-
> > >
> > > > >height());
> > > >
> > > > setGeometry(rect);
> > >
> > > this is not a way to set a window to fullscreen. How should the window
> > > manager
> > > know that this is fullscreen? It sees such a geometry and says: wow
> that's
> > > wrong, it would overlap with the panel. That's obviously not what the
> > > application wants and so I give it the area without the panel.
> > >
> > > If you want to set a window to fullscreen use the proper EWMH hint. I'm
> > > not
> > > sure whether Qt provides a hint for it, but KWindowSystem does.
> > >
> > > Cheers Martin
> > >
> > > ___
> > > Active mailing list
> > > Active@kde.org
> > > https://mail.kde.org/mailman/listinfo/active
> ___
> Active mailing list
> Active@kde.org
> https://mail.kde.org/mailman/listinfo/active
>



-- 
Bogdan Cristea
___
Active mailing list
Active@kde.org
https://mail.kde.org/mailman/listinfo/active


Re: AP - full screen mode

2013-04-09 Thread Martin Graesslin
On Tuesday 09 April 2013 15:54:42 you wrote:
> Actually I am using first
> 
> showFullScreen()
> 
> before setting the geometry, otherwise on AP my window is wrongly resized.
it still sounds quite wrong. Don't set geometries manually unless you really 
have to. The code you pasted would break on a desktop for example as it 
doesn't handle multiple screens. In general we just don't like that (and 
that's one of the reasons why I just look forward to Wayland).

Cheers
Martin
> 
> On Tue, Apr 9, 2013 at 3:50 PM, Martin Graesslin  wrote:
> > On Tuesday 09 April 2013 15:30:56 Bogdan Cristea wrote:
> > > For full screen mode currently I use
> > > 
> > > QRect rect(0, 0, QApplication::desktop()->width(),
> > 
> > QApplication::desktop()-
> > 
> > > >height());
> > > 
> > > setGeometry(rect);
> > 
> > this is not a way to set a window to fullscreen. How should the window
> > manager
> > know that this is fullscreen? It sees such a geometry and says: wow that's
> > wrong, it would overlap with the panel. That's obviously not what the
> > application wants and so I give it the area without the panel.
> > 
> > If you want to set a window to fullscreen use the proper EWMH hint. I'm
> > not
> > sure whether Qt provides a hint for it, but KWindowSystem does.
> > 
> > Cheers Martin
> > 
> > ___
> > Active mailing list
> > Active@kde.org
> > https://mail.kde.org/mailman/listinfo/active
___
Active mailing list
Active@kde.org
https://mail.kde.org/mailman/listinfo/active


Re: AP - full screen mode

2013-04-09 Thread Martin Graesslin
On Tuesday 09 April 2013 15:51:40 Thomas Pfeiffer wrote:
> On 09.04.2013 15:50, Martin Graesslin wrote:
> > On Tuesday 09 April 2013 15:30:56 Bogdan Cristea wrote:
> >> For full screen mode currently I use
> >> 
> >> QRect rect(0, 0, QApplication::desktop()->width(),
> >> QApplication::desktop()-
> >> 
> >>> height());
> >> 
> >> setGeometry(rect);
> > 
> > this is not a way to set a window to fullscreen. How should the window
> > manager know that this is fullscreen? It sees such a geometry and says:
> > wow that's wrong, it would overlap with the panel. That's obviously not
> > what the application wants and so I give it the area without the panel.
> > 
> > If you want to set a window to fullscreen use the proper EWMH hint. I'm
> > not
> > sure whether Qt provides a hint for it, but KWindowSystem does.
> 
> Would KWin Active allow full screen with the correct hint at the moment?
yes of course, fullscreen is not a feature one can turn off in KWin.

Cheers
Martin
___
Active mailing list
Active@kde.org
https://mail.kde.org/mailman/listinfo/active


Re: AP - full screen mode

2013-04-09 Thread Bogdan Cristea
Actually I am using first

showFullScreen()

before setting the geometry, otherwise on AP my window is wrongly resized.


On Tue, Apr 9, 2013 at 3:50 PM, Martin Graesslin  wrote:

> On Tuesday 09 April 2013 15:30:56 Bogdan Cristea wrote:
> > For full screen mode currently I use
> >
> > QRect rect(0, 0, QApplication::desktop()->width(),
> QApplication::desktop()-
> >
> > >height());
> >
> > setGeometry(rect);
> this is not a way to set a window to fullscreen. How should the window
> manager
> know that this is fullscreen? It sees such a geometry and says: wow that's
> wrong, it would overlap with the panel. That's obviously not what the
> application wants and so I give it the area without the panel.
>
> If you want to set a window to fullscreen use the proper EWMH hint. I'm not
> sure whether Qt provides a hint for it, but KWindowSystem does.
>
> Cheers Martin
>
> ___
> Active mailing list
> Active@kde.org
> https://mail.kde.org/mailman/listinfo/active
>



-- 
Bogdan Cristea
___
Active mailing list
Active@kde.org
https://mail.kde.org/mailman/listinfo/active


Re: AP - full screen mode

2013-04-09 Thread Thomas Pfeiffer

On 09.04.2013 15:50, Martin Graesslin wrote:

On Tuesday 09 April 2013 15:30:56 Bogdan Cristea wrote:

For full screen mode currently I use

QRect rect(0, 0, QApplication::desktop()->width(), QApplication::desktop()-


height());


setGeometry(rect);

this is not a way to set a window to fullscreen. How should the window manager
know that this is fullscreen? It sees such a geometry and says: wow that's
wrong, it would overlap with the panel. That's obviously not what the
application wants and so I give it the area without the panel.

If you want to set a window to fullscreen use the proper EWMH hint. I'm not
sure whether Qt provides a hint for it, but KWindowSystem does.


Would KWin Active allow full screen with the correct hint at the moment?

___
Active mailing list
Active@kde.org
https://mail.kde.org/mailman/listinfo/active


Re: AP - full screen mode

2013-04-09 Thread Thomas Pfeiffer

On 09.04.2013 15:46, Bogdan Cristea wrote:

On Tuesday 09 April 2013 15:39:46 Thomas Pfeiffer wrote:

we are currently preventing full screen mode because if a (legacy)
application does not provide a way to exit full screen mode without
using the keyboard, we're stuck with no way to close the application.
This has happened e.g. with Bangarang.
We are planning to re-allow full screen mode once we are sure that no
application running on PA uses full screen without a way to return to
windowed using the touch screen.


ok, in this case I keep my implementation hoping for this future feature in AP
:).

I do believe that a full screen might be needed as the main panel occupies
useful space on the screen.


Absolutely. We also want full screen for video, image or presentation 
viewers in the future. Forbidding it is just a precaution at this moment.


___
Active mailing list
Active@kde.org
https://mail.kde.org/mailman/listinfo/active


Re: AP - full screen mode

2013-04-09 Thread Martin Graesslin
On Tuesday 09 April 2013 15:30:56 Bogdan Cristea wrote:
> For full screen mode currently I use
> 
> QRect rect(0, 0, QApplication::desktop()->width(), QApplication::desktop()-
> 
> >height());
> 
> setGeometry(rect);
this is not a way to set a window to fullscreen. How should the window manager 
know that this is fullscreen? It sees such a geometry and says: wow that's 
wrong, it would overlap with the panel. That's obviously not what the 
application wants and so I give it the area without the panel.

If you want to set a window to fullscreen use the proper EWMH hint. I'm not 
sure whether Qt provides a hint for it, but KWindowSystem does.

Cheers Martin

___
Active mailing list
Active@kde.org
https://mail.kde.org/mailman/listinfo/active


Re: AP - full screen mode

2013-04-09 Thread Bogdan Cristea
On Tuesday 09 April 2013 15:39:46 Thomas Pfeiffer wrote:
> we are currently preventing full screen mode because if a (legacy) 
> application does not provide a way to exit full screen mode without 
> using the keyboard, we're stuck with no way to close the application. 
> This has happened e.g. with Bangarang.
> We are planning to re-allow full screen mode once we are sure that no 
> application running on PA uses full screen without a way to return to 
> windowed using the touch screen.

ok, in this case I keep my implementation hoping for this future feature in AP 
:). 

I do believe that a full screen might be needed as the main panel occupies 
useful space on the screen.

-- 
Bogdan
___
Active mailing list
Active@kde.org
https://mail.kde.org/mailman/listinfo/active


Re: AP - full screen mode

2013-04-09 Thread Bogdan Cristea
On Tuesday 09 April 2013 15:36:23 Marco Martin wrote:
> full screen mode is not supported yet, because on an application
> misbehaving  it can lock out the entire device.
> what would be needed is a kwin extension that offers some gesture to exit
> from  fullscreen

Allright, it's a good point. In my case I am actually using my own toolbar 
with a full screen button. I should disable this on AP, but I am wondering if 
from Qt I can find a portable way to detect when running on AP.

-- 
Bogdan
___
Active mailing list
Active@kde.org
https://mail.kde.org/mailman/listinfo/active


Re: AP - full screen mode

2013-04-09 Thread Thomas Pfeiffer

On 09.04.2013 15:30, Bogdan Cristea wrote:

On Tuesday 09 April 2013 00:41:44 Aaron J. Seigo wrote:

On Monday, April 8, 2013 20:12:41 Bogdan Cristea wrote:

I would like to reuse the background image of the AP main toolbar in my
own
application (for a toolbar that should appear just below the main
toolbar).
Is there a way to obtain this image or something similar ?


it's the widgets/panel-background svg from the Plasma theme.

Svg("widgets/panel-background") should do the trick.


Hi

I am trying to force my application in full screen mode, but it seems that the
main panel is always shown while my application window is below the main
panel. Is there a way to force an application window to be in full screen mode
without the main panel ?

For full screen mode currently I use

QRect rect(0, 0, QApplication::desktop()->width(), QApplication::desktop()-

height());

setGeometry(rect);


Hi,
we are currently preventing full screen mode because if a (legacy) 
application does not provide a way to exit full screen mode without 
using the keyboard, we're stuck with no way to close the application. 
This has happened e.g. with Bangarang.
We are planning to re-allow full screen mode once we are sure that no 
application running on PA uses full screen without a way to return to 
windowed using the touch screen.

___
Active mailing list
Active@kde.org
https://mail.kde.org/mailman/listinfo/active


Re: AP - full screen mode

2013-04-09 Thread Marco Martin
On Tuesday 09 April 2013, Bogdan Cristea wrote:
> > Svg("widgets/panel-background") should do the trick.
> 
> Hi
> 
> I am trying to force my application in full screen mode, but it seems that
> the main panel is always shown while my application window is below the
> main panel. Is there a way to force an application window to be in full
> screen mode without the main panel ?

full screen mode is not supported yet, because on an application misbehaving 
it can lock out the entire device.
what would be needed is a kwin extension that offers some gesture to exit from 
fullscreen

-- 
Marco Martin
___
Active mailing list
Active@kde.org
https://mail.kde.org/mailman/listinfo/active