Client::killProcess takes xcb_timestamp_t as argument
parent
48f08bca83
commit
dc1496f731
|
@ -1363,11 +1363,11 @@ void Client::pingTimeout()
|
|||
killProcess(true, ping_timestamp);
|
||||
}
|
||||
|
||||
void Client::killProcess(bool ask, Time timestamp)
|
||||
void Client::killProcess(bool ask, xcb_timestamp_t timestamp)
|
||||
{
|
||||
if (m_killHelperPID && !::kill(m_killHelperPID, 0)) // means the process is alive
|
||||
return;
|
||||
Q_ASSERT(!ask || timestamp != CurrentTime);
|
||||
Q_ASSERT(!ask || timestamp != XCB_TIME_CURRENT_TIME);
|
||||
pid_t pid = info->pid();
|
||||
if (pid <= 0 || clientMachine()->hostName().isEmpty()) // Needed properties missing
|
||||
return;
|
||||
|
|
2
client.h
2
client.h
|
@ -802,7 +802,7 @@ private:
|
|||
void createDecoration(const QRect &oldgeom);
|
||||
|
||||
void pingWindow();
|
||||
void killProcess(bool ask, Time timestamp = CurrentTime);
|
||||
void killProcess(bool ask, xcb_timestamp_t timestamp = XCB_TIME_CURRENT_TIME);
|
||||
void updateUrgency();
|
||||
static void sendClientMessage(xcb_window_t w, xcb_atom_t a, xcb_atom_t protocol,
|
||||
long data1 = 0, long data2 = 0, long data3 = 0);
|
||||
|
|
Loading…
Reference in New Issue