diff --git a/scripting/workspace_wrapper.cpp b/scripting/workspace_wrapper.cpp index 9f80555ff8..7c6b943439 100644 --- a/scripting/workspace_wrapper.cpp +++ b/scripting/workspace_wrapper.cpp @@ -194,7 +194,7 @@ SLOTWRAPPER(slotSwitchDesktopDown,DesktopBelow) void WorkspaceWrapper::setActiveClient(KWin::AbstractClient* client) { - KWin::Workspace::self()->activateClient(dynamic_cast(client)); + KWin::Workspace::self()->activateClient(client); } QSize WorkspaceWrapper::workspaceSize() const