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
This commit is contained in:
Luboš Luňák 2002-02-08 13:25:09 +00:00
parent 8c368ed7bb
commit bde9fb3af5

View file

@ -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 );
}