summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/xcb
diff options
context:
space:
mode:
authorSamuel Rødal <samuel.rodal@nokia.com>2011-04-08 09:33:38 +0200
committerSamuel Rødal <samuel.rodal@nokia.com>2011-04-08 09:47:48 +0200
commit7cad215190414cc2a146d95f4077dffa3bd4e6a5 (patch)
treecfd828df50fe6c8d9e7f38eb2764867a29f5d7da /src/plugins/platforms/xcb
parent77843fdd856cef5d48e5851d0d961fe5bf4455b2 (diff)
Added _NET_WM_PID in XCB backend.
Diffstat (limited to 'src/plugins/platforms/xcb')
-rw-r--r--src/plugins/platforms/xcb/qxcbwindow.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/platforms/xcb/qxcbwindow.cpp b/src/plugins/platforms/xcb/qxcbwindow.cpp
index 1e9a0f8418..f0b9e3284b 100644
--- a/src/plugins/platforms/xcb/qxcbwindow.cpp
+++ b/src/plugins/platforms/xcb/qxcbwindow.cpp
@@ -213,6 +213,12 @@ QXcbWindow::QXcbWindow(QWidget *tlw)
1, &parentWindow));
}
+
+ // set the PID to let the WM kill the application if unresponsive
+ long pid = getpid();
+ Q_XCB_CALL(xcb_change_property(xcb_connection(), XCB_PROP_MODE_REPLACE, m_window,
+ atom(QXcbAtom::_NET_WM_PID), XCB_ATOM_CARDINAL, 32,
+ 1, &pid));
}
QXcbWindow::~QXcbWindow()