Re: Window thumbnail and Javascript

2011-01-03 Thread Martin Gräßlin
On Monday 03 January 2011 10:33:34 Marco Martin wrote: > On Sunday 02 January 2011, Martin Gräßlin wrote: > > On Sunday 02 January 2011 17:33:25 Aaron J. Seigo wrote: > > > On Saturday, January 1, 2011, Martin Gräßlin wrote: > > > > Last but not least I do not see why we would need rotated thumbnai

Re: Window thumbnail and Javascript

2011-01-03 Thread J Janz
2011/1/2 Aaron J. Seigo > On Sunday, January 2, 2011, Martin Gräßlin wrote: > > Let me rephrase: why would we need a rotated area with thumbnails? I just > > if someone wishes to use the thumbnail is an item on the QGraphicsScene > canvas, that means it can be transformed. Well, I got so worrie

Re: Window thumbnail and Javascript

2011-01-02 Thread Martin Gräßlin
On Sunday 02 January 2011 19:09:40 Aaron J. Seigo wrote: > > FYI: rotating a window is trivial in kwin - built in feature of the > > rendering pipeline. > > yes :) What I forgot: it's of course only available in the OpenGL backend. > > > The difficult part would be IMHO the X atom and > > calcula

Re: Window thumbnail and Javascript

2011-01-02 Thread Aaron J. Seigo
On Sunday, January 2, 2011, Martin Gräßlin wrote: > Let me rephrase: why would we need a rotated area with thumbnails? I just if someone wishes to use the thumbnail is an item on the QGraphicsScene canvas, that means it can be transformed. scaling isn't interesting, since that's already captured

Re: Window thumbnail and Javascript

2011-01-02 Thread Martin Gräßlin
On Sunday 02 January 2011 17:33:25 Aaron J. Seigo wrote: > On Saturday, January 1, 2011, Martin Gräßlin wrote: > > Last but not least I do not see why we would need rotated thumbnails. > > if kwin paints the thumbnail (as opposed to handing over an image that the > application itself then paints)

Re: Window thumbnail and Javascript

2011-01-02 Thread Aaron J. Seigo
On Saturday, January 1, 2011, Martin Gräßlin wrote: > Last but not least I do not see why we would need rotated thumbnails. if kwin paints the thumbnail (as opposed to handing over an image that the application itself then paints) then if the target on which the thumbnail should be painted on is

Re: Window thumbnail and Javascript

2011-01-01 Thread Martin Gräßlin
On Friday 31 December 2010 23:21:51 Aaron J. Seigo wrote: > to support rotation, kwin would also need to know what the rotation in > QGraphicsItem::transorm() is so it knows which way the polygon is oriented. > with that info, kwin should be able to paint thumbails pretty much anywhere > requested.

Re: Window thumbnail and Javascript

2010-12-31 Thread Aaron J. Seigo
On Friday, December 31, 2010, J Janz wrote: > Also, if I got it right from your answer, I still couldn't make it right > now even with a DataEngine/Service, because I wouldn't have a widget, > right? there are probably a number of ways to do it; right now with the tooltip widgets the window manag

Re: Window thumbnail and Javascript

2010-12-31 Thread J Janz
2010/12/30 Aaron J. Seigo > as for general > thumbnails, that sounds like something much more suited for a DataEngine or > a > Service. the biggest problem with that is it requires a top level window id > (e.g.a Plasma::View or even a regular QWidget) and a region inside of it. > i'm > not keen o

Re: Window thumbnail and Javascript

2010-12-30 Thread Martin Gräßlin
On Thursday 30 December 2010 19:10:51 Aaron J. Seigo wrote: > the biggest problem with that is it requires a top level window > id (e.g.a Plasma::View or even a regular QWidget) and a region inside of > it. i'm not keen on exposing that to the Javascript API, but it should be > possible to go from

Re: Window thumbnail and Javascript

2010-12-30 Thread Aaron J. Seigo
On Thursday, December 30, 2010, J Janz wrote: > Hello, there, > > I asked about this a good while ago and back then JS bindings were still > getting stablelized. As I don't see documentation for this specific issue, > I come to ask again: is there a way for a JavaScript plasmoid to make use > of w