diff --git a/workspace.h b/workspace.h --- a/workspace.h +++ b/workspace.h @@ -324,8 +324,6 @@ void setShowingDesktop(bool showing); bool showingDesktop() const; - void sendPingToWindow(xcb_window_t w, xcb_timestamp_t timestamp); // Called from X11Client::pingWindow() - void removeClient(X11Client *); // Only called from X11Client::destroyClient() or X11Client::releaseWindow() void setActiveClient(AbstractClient*); Group* findGroup(xcb_window_t leader) const; diff --git a/workspace.cpp b/workspace.cpp --- a/workspace.cpp +++ b/workspace.cpp @@ -1240,13 +1240,6 @@ c->sendToScreen(screen); } -void Workspace::sendPingToWindow(xcb_window_t window, xcb_timestamp_t timestamp) -{ - if (rootInfo()) { - rootInfo()->sendPing(window, timestamp); - } -} - /** * Delayed focus functions */ diff --git a/x11client.cpp b/x11client.cpp --- a/x11client.cpp +++ b/x11client.cpp @@ -1856,7 +1856,7 @@ // and the second time we'll show the "do you want to kill" prompt ping_timer->start(options->killPingTimeout() / 2); m_pingTimestamp = xTime(); - workspace()->sendPingToWindow(window(), m_pingTimestamp); + rootInfo()->sendPing(window(), m_pingTimestamp); } void X11Client::gotPing(xcb_timestamp_t timestamp)