Drop Workspace::sendPingToWindow()

Summary:
This change drops Workspace::sendPingToWindow() in order to better
separate X11-specific and more generic code.

Test Plan: Still able to close X11 windows.

Reviewers: #kwin, apol

Reviewed By: apol

Subscribers: kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D29472
This commit is contained in:
Vlad Zahorodnii 2020-03-26 16:34:10 +02:00
parent d5e5e2f1c7
commit 325b85f8ca
3 changed files with 1 additions and 10 deletions

View file

@ -1240,13 +1240,6 @@ void Workspace::sendClientToScreen(AbstractClient* c, int screen)
c->sendToScreen(screen);
}
void Workspace::sendPingToWindow(xcb_window_t window, xcb_timestamp_t timestamp)
{
if (rootInfo()) {
rootInfo()->sendPing(window, timestamp);
}
}
/**
* Delayed focus functions
*/

View file

@ -324,8 +324,6 @@ public:
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;

View file

@ -1856,7 +1856,7 @@ void X11Client::pingWindow()
// 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)