From 11198bc7fd70fa247f2edb81013dcf0474aac69c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Sat, 28 Aug 2004 14:33:28 +0000 Subject: [PATCH] Fix windowtonext/previous desktop shortcut. CCMAIL: 87251-done@bugs.kde.org svn path=/trunk/kdebase/kwin/; revision=342167 --- useractions.cpp | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/useractions.cpp b/useractions.cpp index d0be44e445..50ababcd9d 100644 --- a/useractions.cpp +++ b/useractions.cpp @@ -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()) ); + } } /*!