diff options
author | Samuel Rødal <samuel.rodal@nokia.com> | 2011-04-08 07:33:38 (GMT) |
---|---|---|
committer | Samuel Rødal <samuel.rodal@nokia.com> | 2011-04-08 07:47:48 (GMT) |
commit | 7cad215190414cc2a146d95f4077dffa3bd4e6a5 (patch) | |
tree | cfd828df50fe6c8d9e7f38eb2764867a29f5d7da /src/plugins/platforms | |
parent | 77843fdd856cef5d48e5851d0d961fe5bf4455b2 (diff) | |
download | Qt-7cad215190414cc2a146d95f4077dffa3bd4e6a5.zip Qt-7cad215190414cc2a146d95f4077dffa3bd4e6a5.tar.gz Qt-7cad215190414cc2a146d95f4077dffa3bd4e6a5.tar.bz2 |
Added _NET_WM_PID in XCB backend.
Diffstat (limited to 'src/plugins/platforms')
-rw-r--r-- | src/plugins/platforms/xcb/qxcbwindow.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/platforms/xcb/qxcbwindow.cpp b/src/plugins/platforms/xcb/qxcbwindow.cpp index 1e9a0f8..f0b9e32 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() |