From bde9fb3af521b99c8e7a962c68066465a1f0644c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Fri, 8 Feb 2002 13:25:09 +0000 Subject: [PATCH] Make 'Window to Desktop X' actions work only for NET::Normal and NET::Dialog windows ... sending Kicker between desktops is fun, but I guess it's better without this feature. svn path=/trunk/kdebase/kwin/; revision=135385 --- workspace.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/workspace.cpp b/workspace.cpp index 23bd26d0c6..e35a9abc5e 100644 --- a/workspace.cpp +++ b/workspace.cpp @@ -2816,7 +2816,9 @@ void Workspace::slotSwitchToDesktop( int i ) void Workspace::slotWindowToDesktop( int i ) { - if( i >= 1 && i <= numberOfDesktops() && popup_client ) + if( i >= 1 && i <= numberOfDesktops() && popup_client + && ( popup_client->windowType() == NET::Normal + || popup_client->windowType() == NET::Dialog )) sendClientToDesktop( popup_client, i ); }