removing dependencies from kactivitymanagerd

Aaron J. Seigo aseigo at kde.org
Tue Oct 4 14:33:03 UTC 2011


hi all...

i experimented a bit this morning with cutting the fat from kactivitymanagerd. 
in particular i focussed on the following.

KUniqueApplication: this lives in kdeui ... just to provide a way to have only 
one instance of the app. ugh. in Frameworks there is libkdbus which has a 
KDBusService which provides the same capabilities. porting to that proved 
quite simple and straightforward and let ActivityManager become a 
QCoreApplication subclass.

KWindowSystem: this one is more difficult. it is used only to track the 
comings and goings of windows. no other features are used. and it ends up 
causing a QWidget to be created, which KWindowSystem uses to filter x11 
events. i don't have a great solution for this one .. but it would be very 
nice to have something that doesn't pull in such a heavy set of dependencies 
just to watch window states. i don't know if this would be general-purpose 
enough to end up in Frameworks (my gut says "no") but writing a simple class 
that can have a window-system-specific implementation that alerts when the 
window focus changes and windows are closed would make a lot of sense for 
kactivitymanagerd.

so, i have a patch for the former, but nothing for the latter. any takers? :)

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Qt Development Frameworks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20111004/6ee067d2/attachment.sig>


More information about the Plasma-devel mailing list