Fix windowtonext/previous desktop shortcut.

CCMAIL: 87251-done@bugs.kde.org

svn path=/trunk/kdebase/kwin/; revision=342167
This commit is contained in:
Luboš Luňák 2004-08-28 14:33:28 +00:00
parent 7e4f0508cf
commit 11198bc7fd

View file

@ -710,9 +710,12 @@ void Workspace::slotWindowToNextDesktop()
d = 1;
if (active_client && !active_client->isDesktop()
&& !active_client->isDock() && !active_client->isTopMenu())
sendClientToDesktop(active_client,d,true);
setCurrentDesktop(d);
popupinfo->showInfo( desktopName(currentDesktop()) );
{
setClientIsMoving( active_client );
setCurrentDesktop( d );
setClientIsMoving( NULL );
popupinfo->showInfo( desktopName(currentDesktop()) );
}
}
/*!
@ -725,9 +728,12 @@ void Workspace::slotWindowToPreviousDesktop()
d = numberOfDesktops();
if (active_client && !active_client->isDesktop()
&& !active_client->isDock() && !active_client->isTopMenu())
sendClientToDesktop(active_client,d,true);
setCurrentDesktop(d);
popupinfo->showInfo( desktopName(currentDesktop()) );
{
setClientIsMoving( active_client );
setCurrentDesktop( d );
setClientIsMoving( NULL );
popupinfo->showInfo( desktopName(currentDesktop()) );
}
}
/*!