[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-active
Subject: Fullscreen window support
From: Martin =?ISO-8859-1?Q?Gr=E4=DFlin?= <mgraesslin () kde ! org>
Date: 2012-01-26 16:05:19
Message-ID: 5640483.x9zgG9LgEB () martin-desktop
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
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
["signature.asc" (application/pgp-signature)]
_______________________________________________
Active mailing list
Active@kde.org
https://mail.kde.org/mailman/listinfo/active
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic