From kde-core-devel Sat Jan 11 16:50:01 2003 From: Pupeno Date: Sat, 11 Jan 2003 16:50:01 +0000 To: kde-core-devel Subject: Re: getting x events with a kded module X-MARC-Message: https://marc.info/?l=kde-core-devel&m=104238489525111 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Saturday 11 January 2003 09:09, Simon Hausmann wrote: > On Fri, Jan 10, 2003 at 07:07:57PM -0500, Pupeno wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > I'm trying to port kaccess to be a kded module and the main problem is > > that I don't know how to get X events in a kded module. > > Current kaccess code relies on: QApplication::x11EventFilter ( XEvent * ) > > but of course, as not being a Q/KApplication, I can't use that function. > > What can I do then ? > > kded makes regular use of KApplication and connects to the X server. > Using KApplication's installX11EventFilter API you should be able to > catch X11 events easily. Ok, if you say so (I can test it right now), but, how do I run installX11EventFilter without a KApplication object ? or how do I access KDED's KApplication from the KDED module ? Thanks. - -- Pupeno: pupeno@kde.org KDE Accessibility co-maintainer http://accessibility.kde.org - --- Help the hungry children of Argentina, please go to (and make it your homepage): http://www.porloschicos.com/servlet/PorLosChicos?comando=donar -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE+IEs7Lr8z5XzmSDQRAtWzAJ4sRwkpbQufn3NtOWo8sxMiPmFkXgCgzqjX TzokCs8EAFV/5i67zX4EfLY= =wW2J -----END PGP SIGNATURE-----