diff options
| author | Alexander Golubev <fatzer2@gmail.com> | 2026-01-08 06:08:21 +0300 |
|---|---|---|
| committer | Fat-Zer <fatzer2@gmail.com> | 2026-02-13 19:41:02 +0000 |
| commit | 97e3bd0ca6cdc58c1915038eaf28822a60d0206e (patch) | |
| tree | a069320b8732ce87980b003f7bd0bf8e5eb15a3c | |
| parent | 7a5b6c55a2f750986ede116b8f09bda2588de3a9 (diff) | |
| download | tdebase-97e3bd0ca6cdc58c1915038eaf28822a60d0206e.tar.gz tdebase-97e3bd0ca6cdc58c1915038eaf28822a60d0206e.zip | |
twin: treat keepAbove() windows exactly as active
Before this the keepAbove() windows were always completely when inactive
regardless whether active windows have some degree of translucency or
not. But as prompt in the config says they should be just treated as
active.
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
| -rw-r--r-- | twin/client.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/twin/client.cpp b/twin/client.cpp index 050d1e965..e9e74e139 100644 --- a/twin/client.cpp +++ b/twin/client.cpp @@ -2827,7 +2827,7 @@ void Client::setShadowSize(uint shadowSize) uint Client::defaultOpacity() { - if (isActive()) + if (isActive() || (keepAbove() && options->keepAboveAsActive)) { if( ruleOpacityActive() ) return rule_opacity_active; @@ -2839,9 +2839,7 @@ uint Client::defaultOpacity() if( ruleOpacityInactive() ) return rule_opacity_inactive; else - return options->translucentInactiveWindows && !(keepAbove() && options->keepAboveAsActive) ? - options->inactiveWindowOpacity - : Opacity::Opaque; + return options->translucentInactiveWindows ? options->inactiveWindowOpacity : Opacity::Opaque; } } |
