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

Android APPs in Plasma

9

Votes
17
8
Tags: plasma plasma plasma
(comma "," separated)
User avatar
ivan
KDE Developer
Posts
918
Karma
14
OS

RE: [Plasma] Android APPs in Plasma

Wed Jun 17, 2009 10:05 pm
That is one cool example.

Though, it doesn't use the XEmbed, it uses compositing, xrender and xdamage extensions. So, unlike XEmbed, the thing you see transformed (rotated...) is not the /real/ window.

As I've already mentioned, compositing could be a valid solution for making full-featured plasma widgets out of applications. The first problem is what to do when there is no compositing enabled.

The problem with implementation is passing the key/mouse/whatever events to the real window, and there would also be focusing issues (focussing is also a problem with XEmbed).

So, in a nutshell, this is something that could eventually be made, but it would involve a lot of hacks, and I don't think it would ever /feel/ right...


Image
Lukas
Registered Member
Posts
427
Karma
0

RE: [Plasma] Android APPs in Plasma

Wed Jun 17, 2009 11:05 pm
However, how often do we really need to rotate things?

Anyway, ability to put any app "into" activity would be great. even if it would be a window with z-index of 1 without window decoration and excluded from taskbar...
User avatar
ivan
KDE Developer
Posts
918
Karma
14
OS

RE: [Plasma] Android APPs in Plasma

Thu Jun 18, 2009 6:44 am
@Lukas
I agree, most of the time you don't rotate the application (nor applet) but the problem is that if it is a feature of all plasmoids (as it currently is) it must be a feature of all plasmoids... (there were discussions about these things)


Image
Rms-Mit
Registered Member
Posts
58
Karma
0
OS

RE: [Plasma] Android APPs in Plasma

Thu Jun 18, 2009 7:10 am
I was all excited with my original idea and now I'm thinking more and more that it wasn't such a good idea after all.:-(

I think the best idea is to just associate an App with an activity and save it's kwin settings to have always start in a particular desktop location and set it to be behind other windows. Maybe we could even make it show with the other plasma widgets when they are brought forward on the dashboard.
User avatar
ivan
KDE Developer
Posts
918
Karma
14
OS

RE: [Plasma] Android APPs in Plasma

Thu Jun 18, 2009 8:42 am
It is a valid idea, just very hard to do. The effect you'd get with kwin is the same as using XEmbed. So, the best solution would be to improve (or finish) the current XEmbed plasmoid...


Image
The User
KDE Developer
Posts
647
Karma
0
OS

RE: [Plasma] Android APPs in Plasma

Fri Jun 19, 2009 10:14 am
Plasma::Applet::setRotationEnabled(bool)
Plasma::Applet::setResizingEnabled(bool)
Plasma::Applet::setMovingEnabled(bool)

I think such functions shouldn't be a problem...
But XEmbed-Plasmoid needs another feature: After reboot the app isn't embedded anymore.

Last edited by The User on Fri Jun 19, 2009 10:15 am, edited 1 time in total.
User avatar
ivan
KDE Developer
Posts
918
Karma
14
OS

RE: [Plasma] Android APPs in Plasma

Fri Jun 19, 2009 10:43 am
It wouldn't be hard to add such functions (although setMovingEnabled is not something I'd even consider to have...). To be honest, I can't remember how that discussion ended, and why it wasn't added at that time.

Yes, XEmbed-Plasmoid is mostly a POC. It can really be useful, but only if someone decides to finish it...


Image


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], q.ignora, watchstar