[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-panel-devel
Subject:    Re: Window thumbnail and Javascript
From:       Marco Martin <notmart () gmail ! com>
Date:       2010-12-30 18:45:36
Message-ID: 201012301945.36750.notmart () gmail ! com
[Download RAW message or body]

On Thursday 30 December 2010, Martin Gräßlin wrote:
> 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 a geometry in the plasmoid's coords to a set of
> > global coords in a top level view. still, i don't think this belongs in
> > the actual JS API as its far too specific to a given use case. a plugin
> > approach, via DataEngine and/or Service, seems more sensible.
> 
> What could be done from the kwin side is providing a dbus interface. That
> way there would not be any need for the WId (and dbus is a much nicer API
> than XAtoms). Though I agree that showing window thumbnails is nothing
> that belongs into a JavaScript applet.
and then, even with the grand plans of complete migration towards 
qml/javascript, in the case of qml a c++ class can still be used for the 
dirtiest stuff in the taskbar and just for the taskbar.

so not having this possibility in pure js and/or qml, is an acceptable loss 
imo.

Cheers,
Marco Martin
_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic