Commit a10647ed authored by David Edmundson's avatar David Edmundson

Disable fade effect during fullscreen effects

This means that if one opens/closes a window whilst present windows (for
example) is active we don't have two effects meddling with the opacity.

Like glide and scale this disables if it's invoked during an active full
screen effect, but it does not cancel animations that are running when a
full screen effect is launched.

Test Plan:
Windows still fade normally as before
Ran sleep ; dolphin with present windows / cube
Present windows fades windows itself so it's hard to see any difference
But it's more technically correct

Reviewers: #kwin, zzag

Reviewed By: #kwin, zzag

Subscribers: zzag, kwin

Tags: #kwin

Differential Revision:
parent 12cc0809
......@@ -53,6 +53,9 @@ effect.configChanged.connect(function() {
function fadeInHandler(w) {
if (effects.hasActiveFullScreenEffect) {
if (fadeWindows && isFadeWindow(w)) {
if (w.fadeOutWindowTypeAnimation !== undefined) {
......@@ -62,6 +65,9 @@ function fadeInHandler(w) {
function fadeOutHandler(w) {
if (effects.hasActiveFullScreenEffect) {
if (fadeWindows && isFadeWindow(w)) {
if (w.fadeOutWindowTypeAnimation !== undefined) {
// don't animate again as it was already animated through window hidden
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment