aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Lübking <thomas.luebking@gmail.com>2012-02-29 00:17:42 (GMT)
committerThomas Lübking <thomas.luebking@gmail.com>2012-03-07 19:52:15 (GMT)
commite9dcf1a8d1c9e2a6b15982293a207e15b1116179 (patch)
tree75803039ca288d69b921fdd818ca31d857811471
parent095c602617949afc55e34d0634f8de8357ca28eb (diff)
set desktop w/o desktop hint on all desktops
helps with legacy desktops replacing decorations like IceWM which withdraw the desktop settings REVIEW: 104112
-rw-r--r--kwin/manage.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/kwin/manage.cpp b/kwin/manage.cpp
index adbe29c..837d65e 100644
--- a/kwin/manage.cpp
+++ b/kwin/manage.cpp
@@ -220,7 +220,7 @@ bool Client::manage(Window w, bool isMapped)
}
}
if (desk == 0) // Assume window wants to be visible on the current desktop
- desk = workspace()->currentDesktop();
+ desk = isDesktop() ? NET::OnAllDesktops : workspace()->currentDesktop();
desk = rules()->checkDesktop(desk, !isMapped);
if (desk != NET::OnAllDesktops) // Do range check
desk = qMax(1, qMin(workspace()->numberOfDesktops(), desk));