This forum has been archived. All content is frozen. Please use KDE Discuss instead.

[KWin][Plasma] Makes integrating with plasma simple

1

Votes
1
0
Tags: None
(comma "," separated)
Lachu
Registered Member
Posts
864
Karma
1
OS
I have idea to place plasma container in application window. I know, that's currently possible, but writing this integration is not simple.

The idea is to add special function, which takes four arguments:
- Plasmoids directory(path to directory contains plasmoids for this application/window)
- Window X ID
- Window ID(string, which identify window in this application)
- Parent window X ID

If last argument is not given, then plasma container will be created by KWin and placed in left/right side panel. If is given, then created plasma container will be placed in window with specified X ID.

How it would work from user perspective? User click special button on window border and plasma container will be created if application call our function for this window(second argument). Identifier and application path will be used to remember data and set of plasmoid, so if application call this function with previously used window id, plasmoids will be restored.

If you can use another data than Window ID given by this function, then you can add this functionality for each window/application.

This is necessary, because yet each application don't support plasmoids. Amarok support plasmoids and doing this in good way, but for example KDevelop4 didn't.


Lachu, proud to be a member of KDE forums since 2008-Nov.


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell, Yahoo [Bot]