From kde-frameworks-devel Fri Feb 01 12:12:54 2013 From: Martin =?ISO-8859-1?Q?Gr=E4=DFlin?= Date: Fri, 01 Feb 2013 12:12:54 +0000 To: kde-frameworks-devel Subject: KJavaAppletWidget's usage of KWindowSystem Message-Id: <1478103.snYM6c1i5s () martin-desktop> X-MARC-Message: https://marc.info/?l=kde-frameworks-devel&m=135980316015660 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============7238206141907030773==" --===============7238206141907030773== Content-Type: multipart/signed; boundary="nextPart2329259.3M4Rsg4sk2"; micalg="pgp-sha1"; protocol="application/pgp-signature" Content-Transfer-Encoding: quoted-printable --nextPart2329259.3M4Rsg4sk2 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Hi all, I have sent this mail to kfm-devel some time ago, but have not received= any=20 reply so far. Therefore I try on frameworks-devel as it affects framewo= rks. The class KJavaAppletWidget is using the method KWindowSystem::doNotMan= age()=20 to tell KWin (via DBus) to not manage the applet window. The method in question is used only by KStart and by the java applet an= d to be=20 honest: I would like to get rid off it in Frameworks 5. Through lots of git magic I was able to find the commit which added the= =20 functionality: kdelibs, 0838ff87 on 15th of July, 2000 by Matthias Ettr= ich=20 with the very explaining commit message "do not manage magic". It doesn= 't help=20 me to understand why it is needed :-) The KWin part clearly states that= it is=20 a HACK only for Java applets. From my understanding the method is wrong in general for the following=20= reasons: * works only with KWin * uses D-Bus instead of X11 * if a window should not be managed by the window manager it should use= the=20 override redirect hint * matching windows by title is broken by design * adds a hack to a window manager to work around a Client (not good) For me the important question is, whether this is still needed. And tha= t is=20 what I cannot test, as: * I don't know of any web page still using Java Applets * I have uninstalled Java after one of the recent security nightmares * I don't want to install Java again due to the security issues If anyone could enlighten me, I would be very happy :-) If this functionality is no longer required, I would prepare a commit f= or=20 frameworks 5 to remove it from KDE Frameworks 5 and mark the methods in= KWin=20 for removal. For KDE 4 life time we will keep the interface there, thou= gh I=20 honestly don't know whether it's still functional ;-) If it is still required, I would like to discuss what could be done to = not=20 need it. Apparently other window managers don't provide the KWin D-Bus=20= interface and apparently other browser engines don't need to tell KWin = about=20 it. So there must be solutions which would not need this method. Unrelated side-note: the code in KJavaAppletWidget is partially disable= d in=20 the frameworks branch. Best Regards Martin Gr=C3=A4=C3=9Flin --nextPart2329259.3M4Rsg4sk2 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEABECAAYFAlELsUYACgkQqVXwidMiVrpAZACfTF5gdfPeCwOK7CoMi+DBXdgt uDkAnjKM5fYt8PTzGny4y+chGHNyC27J =/BZz -----END PGP SIGNATURE----- --nextPart2329259.3M4Rsg4sk2-- --===============7238206141907030773== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Kde-frameworks-devel mailing list Kde-frameworks-devel@kde.org https://mail.kde.org/mailman/listinfo/kde-frameworks-devel --===============7238206141907030773==--