From 2d01df9e04a97adc1215e0dbf7afb24560581760 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Thu, 19 Aug 2010 12:07:44 +0000 Subject: [PATCH] if a transient has a main window that is on all desktops, make the transient too svn path=/trunk/KDE/kdebase/workspace/; revision=1165451 --- manage.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/manage.cpp b/manage.cpp index f76bb70390..d718bc470a 100644 --- a/manage.cpp +++ b/manage.cpp @@ -165,6 +165,7 @@ bool Client::manage( Window w, bool isMapped ) { ClientList mainclients = mainClients(); bool on_current = false; + bool on_all = false; Client* maincl = NULL; // This is slightly duplicated from Placement::placeOnMainWindow() for( ClientList::ConstIterator it = mainclients.constBegin(); @@ -176,8 +177,12 @@ bool Client::manage( Window w, bool isMapped ) maincl = *it; if( (*it)->isOnCurrentDesktop() ) on_current = true; + if( (*it)->isOnAllDesktops() ) + on_all = true; } - if( on_current ) + if( on_all ) + desk = NET::OnAllDesktops; + else if( on_current ) desk = workspace()->currentDesktop(); else if( maincl != NULL ) desk = maincl->desktop();