Don't reset the window type on window show

We were resetting the window type on show, this was breaking some
deployments, since it used to be possible to set the xcb properties from
the user application.
This change requires the user to at least start using the
QtPlatformHeaders before overriding the window properties with the values
set there.

Change-Id: Ic58919a42b6d532035c7ec6158a086b85666a22f
Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
This commit is contained in:
Aleix Pol 2014-07-28 17:52:26 +02:00 committed by Robin Burchell
parent 61fecb23c2
commit 87242756d4

View File

@ -723,8 +723,10 @@ void QXcbWindow::show()
updateNetWmStateBeforeMap();
}
QXcbWindowFunctions::WmWindowTypes wmWindowTypes(window()->property(wm_window_type_property_id).value<int>());
setWmWindowType(wmWindowTypes);
if (window()->metaObject()->indexOfProperty(wm_window_type_property_id) >= 0) {
QXcbWindowFunctions::WmWindowTypes wmWindowTypes(window()->property(wm_window_type_property_id).value<int>());
setWmWindowType(wmWindowTypes);
}
if (connection()->time() != XCB_TIME_CURRENT_TIME)
updateNetWmUserTime(connection()->time());