From c885d88f28d8016dccccbaa82ed6cb60e543b560 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Wed, 29 Feb 2012 01:17:42 +0100 Subject: [PATCH] set desktop w/o desktop hint on all desktops helps with legacy desktops replacing decorations like IceWM which withdraw the desktop settings REVIEW: 104112 --- manage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manage.cpp b/manage.cpp index adbe29c281..837d65efed 100644 --- a/manage.cpp +++ b/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));