Changeset View
Changeset View
Standalone View
Standalone View
x11client.cpp
Show First 20 Lines • Show All 1850 Lines • ▼ Show 20 Line(s) | 1839 | [this]() { | |||
---|---|---|---|---|---|
1851 | ping_timer->start(); | 1851 | ping_timer->start(); | ||
1852 | } | 1852 | } | ||
1853 | ); | 1853 | ); | ||
1854 | ping_timer->setSingleShot(true); | 1854 | ping_timer->setSingleShot(true); | ||
1855 | // we'll run the timer twice, at first we'll desaturate the window | 1855 | // we'll run the timer twice, at first we'll desaturate the window | ||
1856 | // and the second time we'll show the "do you want to kill" prompt | 1856 | // and the second time we'll show the "do you want to kill" prompt | ||
1857 | ping_timer->start(options->killPingTimeout() / 2); | 1857 | ping_timer->start(options->killPingTimeout() / 2); | ||
1858 | m_pingTimestamp = xTime(); | 1858 | m_pingTimestamp = xTime(); | ||
1859 | workspace()->sendPingToWindow(window(), m_pingTimestamp); | 1859 | rootInfo()->sendPing(window(), m_pingTimestamp); | ||
1860 | } | 1860 | } | ||
1861 | 1861 | | |||
1862 | void X11Client::gotPing(xcb_timestamp_t timestamp) | 1862 | void X11Client::gotPing(xcb_timestamp_t timestamp) | ||
1863 | { | 1863 | { | ||
1864 | // Just plain compare is not good enough because of 64bit and truncating and whatnot | 1864 | // Just plain compare is not good enough because of 64bit and truncating and whatnot | ||
1865 | if (NET::timestampCompare(timestamp, m_pingTimestamp) != 0) | 1865 | if (NET::timestampCompare(timestamp, m_pingTimestamp) != 0) | ||
1866 | return; | 1866 | return; | ||
1867 | delete ping_timer; | 1867 | delete ping_timer; | ||
▲ Show 20 Lines • Show All 3181 Lines • Show Last 20 Lines |