From kde-active Thu Jan 26 16:05:19 2012 From: Martin =?ISO-8859-1?Q?Gr=E4=DFlin?= Date: Thu, 26 Jan 2012 16:05:19 +0000 To: kde-active Subject: Fullscreen window support Message-Id: <5640483.x9zgG9LgEB () martin-desktop> X-MARC-Message: https://marc.info/?l=kde-active&m=132759411528107 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============6281601408889684587==" --===============6281601408889684587== Content-Type: multipart/signed; boundary="nextPart1648042.LttHf3hjII"; micalg="pgp-sha1"; protocol="application/pgp-signature" Content-Transfer-Encoding: 7Bit --nextPart1648042.LttHf3hjII Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8" Hi all, I found a solution to the problem of fullscreen windows covering the panel and no option to go back. With KWin of today we can use scripting to solve this problem: function allowedFullscreen(client) { return client.resourceClass == "i'm_special"; } workspace.clientFullScreenSet.connect(function(client, set) { if (set && !allowedFullscreen(client)) { client.geometry = {x: 0, y: 38, width: workspace.displayWidth, height: workspace.displayHeight-38} } }); This script notices when a window goes to fullscreen and adjusts the geometry to not cover the panel. So for the window everything is like it were fullscreen, but it is just a few pixel smaller. Additionally we can install a whitelist to allow applications to go fullscreen if we know that they offer a way to go back (e.g. latest versions of Calligra Active). If you are interested in it, I can include the script in KWin and make sure that it gets installed if we compile to active. No further adjustment work would be needed. Cheers Martin --nextPart1648042.LttHf3hjII Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEABECAAYFAk8heb8ACgkQqVXwidMiVrr++QCfWSIILLRx/wW8BUs++zgitWA/ x/kAn1jAIR8DOfm7iUMEPAiRmd/wrNVb =Gco9 -----END PGP SIGNATURE----- --nextPart1648042.LttHf3hjII-- --===============6281601408889684587== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Active mailing list Active@kde.org https://mail.kde.org/mailman/listinfo/active --===============6281601408889684587==--