Workspace::slotWindowTo(Previous|Next)Desktop operates on AbstractClient

This commit is contained in:
Martin Gräßlin 2015-03-06 15:17:13 +01:00
parent 1d4701d67e
commit ddcd4dab59
2 changed files with 5 additions and 5 deletions

View file

@ -1566,7 +1566,7 @@ void Workspace::slotToggleShowDesktop()
}
template <typename Direction>
void windowToDesktop(Client *c)
void windowToDesktop(AbstractClient *c)
{
VirtualDesktopManager *vds = VirtualDesktopManager::self();
Workspace *ws = Workspace::self();
@ -1590,7 +1590,7 @@ void Workspace::slotWindowToNextDesktop()
windowToNextDesktop(active_client);
}
void Workspace::windowToNextDesktop(Client* c)
void Workspace::windowToNextDesktop(AbstractClient* c)
{
windowToDesktop<DesktopNext>(c);
}
@ -1604,7 +1604,7 @@ void Workspace::slotWindowToPreviousDesktop()
windowToPreviousDesktop(active_client);
}
void Workspace::windowToPreviousDesktop(Client* c)
void Workspace::windowToPreviousDesktop(AbstractClient* c)
{
windowToDesktop<DesktopPrevious>(c);
}

View file

@ -248,8 +248,8 @@ public:
bool only_normal = true) const;
Client* findDesktop(bool topmost, int desktop) const;
void sendClientToDesktop(Client* c, int desktop, bool dont_activate);
void windowToPreviousDesktop(Client* c);
void windowToNextDesktop(Client* c);
void windowToPreviousDesktop(AbstractClient* c);
void windowToNextDesktop(AbstractClient* c);
void sendClientToScreen(AbstractClient* c, int screen);
/**