xcb: Fix getting the window types from the property of QWindow
wm_window_type_property_id is a dynamic property, so we should check that it is set by using QObject::dynamicPropertyNames() instead of QMetaObject::indexOfProperty(). Change-Id: Ic7f3408a0d028f349538e0538c40c4b58360f7df Reviewed-by: Jørgen Lind <jorgen.lind@theqtcompany.com>
This commit is contained in:
parent
5772d7fe06
commit
e098b93488
@ -873,7 +873,7 @@ void QXcbWindow::show()
|
||||
updateNetWmStateBeforeMap();
|
||||
}
|
||||
|
||||
if (window()->metaObject()->indexOfProperty(wm_window_type_property_id) >= 0) {
|
||||
if (window()->dynamicPropertyNames().contains(wm_window_type_property_id)) {
|
||||
QXcbWindowFunctions::WmWindowTypes wmWindowTypes(window()->property(wm_window_type_property_id).value<int>());
|
||||
setWmWindowType(wmWindowTypes);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user