Unset _NET_WM_USER_TIME_WINDOW before destroying the window
authorJan Arne Petersen <jpetersen@openismus.com>
Fri, 24 Feb 2012 17:05:06 +0000 (18:05 +0100)
committerQt by Nokia <qt-info@nokia.com>
Thu, 1 Mar 2012 18:00:15 +0000 (19:00 +0100)
commit022ff04a6bb76f18b8b4d0a8bbcb2b21bd771546
treebb44723c4c16bdc0fdf3c2b46b42af5ee30ced79
parente51e7b851f6452ed19ae960179963559ab0b78ea
Unset _NET_WM_USER_TIME_WINDOW before destroying the window

Otherwise metacity was crashing when a QWindow was destroyed immediately
after being activated, because metacity was trying to select events
(XSelectInput) for the already destroyed m_netWmUserTimeWindow.

Task-number: QTBUG-24492
Change-Id: Iedbe7bdd6b26110ca8bec6f33525209ae551ffd5
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
src/plugins/platforms/xcb/qxcbwindow.cpp
tests/auto/gui/kernel/qwindow/tst_qwindow.cpp