From kde-devel Fri Oct 15 22:27:16 2004 From: Aaron Seigo Date: Fri, 15 Oct 2004 22:27:16 +0000 To: kde-devel Subject: Re: Proposal to implement autohide in systemtray. Message-Id: <200410151627.17177.aseigo () kde ! org> X-MARC-Message: https://marc.info/?l=kde-devel&m=109787908313680 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============0771383301==" --===============0771383301== Content-Type: multipart/signed; boundary="nextPart2596686.GH2nxKPvqS"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart2596686.GH2nxKPvqS Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On October 15, 2004 11:19, Andre Moreira Magalhaes wrote: > Currently i was looking to bug reports and decided to > try to implement the autohide of unused icons on > systemtray. good luck. =3D/ > But i have some questions about what can be considered > an unused icon: > - An icon that was not clicked for some time. If so, > how can i catch a mouse press event in a qxembed > subclass? you'd need to do it with an event filter that catches all X events for the= =20 geometry covering the systray. this kind of stuff is very, very ugly and=20 very, very prone to breakage. i'm very, very opposed to this sort of hack. = of=20 course, perhaps someone else can suggest a more elegant way of managing it,= =20 but the basic problem is that the icons are out-of-process and the system=20 tray has no real way of programatically interacting with them. ergo, the=20 current systray protocol sucks. this is a known issue. > - An icon has no activity for some time. What can be > considered an activity? > > In both cases how many time to consider that an icon > is unused? there is no reliable way. the current systray protocol is fundamentally bro= ken=20 in this respect. btw, sometime before 3.2 or 3.1 i implemented the ability to hide/autohide= =20 icons in the system tray. but because the systray doesn't actually control= =20 the icons they would re-appear at the controling application's whim and do= =20 other crazy and annoying things. if you end up dead-ending on this one, please look around at other things i= n=20 kicker and its applets.. there's all kinds of cool stuff that can be done i= n=20 there that's actually possible today =3D) =2D-=20 Aaron J. Seigo Society is Geometric --nextPart2596686.GH2nxKPvqS Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQBBcE7F1rcusafx20MRAjriAKCY+i0Z3tdi4bcGb7mVJOiguUSWdgCfWY8c XmOghY9WQth9Ux3ZUblxae0= =vBPu -----END PGP SIGNATURE----- --nextPart2596686.GH2nxKPvqS-- --===============0771383301== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe << --===============0771383301==--