Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Commit 07cc4b00 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii

[effects/fadedesktop] Don't animate windows moved between virtual desktops

If a window was moved to another virtual desktop, then it would be faded
in. The desired behavior is to not animate it at all.

Test Plan: Moved a Konsole window between virtual desktops, it stayed opaque.

Reviewers: #kwin, davidedmundson

Reviewed By: #kwin, davidedmundson

Subscribers: kwin

Tags: #kwin

Differential Revision:
parent cc280a4d
......@@ -26,13 +26,20 @@ loadConfig();
effect.configChanged.connect(function() {
effects['desktopChanged(int,int)'].connect(function(oldDesktop, newDesktop) {
effects['desktopChanged(int,int,KWin::EffectWindow*)'].connect(function(oldDesktop, newDesktop, movingWindow) {
if (effects.hasActiveFullScreenEffect && !effect.isActiveFullScreenEffect) {
var stackingOrder = effects.stackingOrder;
for (var i = 0; i < stackingOrder.length; i++) {
var w = stackingOrder[i];
// Don't animate windows that have been moved to the current
// desktop, i.e. newDesktop.
if (w == movingWindow) {
if (w.desktop != oldDesktop && w.desktop != newDesktop) {
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