Commit 325b85f8 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii

Drop Workspace::sendPingToWindow()

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:
parent d5e5e2f1
......@@ -1240,13 +1240,6 @@ void Workspace::sendClientToScreen(AbstractClient* c, int screen)
void Workspace::sendPingToWindow(xcb_window_t window, xcb_timestamp_t timestamp)
if (rootInfo()) {
rootInfo()->sendPing(window, timestamp);
* Delayed focus functions
......@@ -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;
......@@ -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)
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment