widget: set WA_X11NetWmWindowType* after xcb window was created
This amends 17d68c4fc371c32bd58d0a94ac63f0170edaf29e. Fixes: QTBUG-116696 Task-number: QTBUG-39887 Change-Id: Idf385bcbeb630ddfc51b39b2af35da3ab94b07c0 Reviewed-by: Axel Spoerl <axel.spoerl@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> (cherry picked from commit 29b076d6143f8a4aede72c176efcc40e5b7d701e) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
4b39596512
commit
7864c01c77
@ -1271,7 +1271,6 @@ void QWidgetPrivate::create()
|
||||
win->setProperty("_q_showWithoutActivating", QVariant(true));
|
||||
if (q->testAttribute(Qt::WA_MacAlwaysShowToolWindow))
|
||||
win->setProperty("_q_macAlwaysShowToolWindow", QVariant(true));
|
||||
setNetWmWindowTypes(true); // do nothing if none of WA_X11NetWmWindowType* is set
|
||||
win->setFlags(flags);
|
||||
fixPosIncludesFrame();
|
||||
if (q->testAttribute(Qt::WA_Moved)
|
||||
@ -1361,6 +1360,7 @@ void QWidgetPrivate::create()
|
||||
Q_ASSERT(id != WId(0));
|
||||
setWinId(id);
|
||||
}
|
||||
setNetWmWindowTypes(true); // do nothing if none of WA_X11NetWmWindowType* is set
|
||||
|
||||
// Check children and create windows for them if necessary
|
||||
q_createNativeChildrenAndSetParent(q);
|
||||
|
Loading…
x
Reference in New Issue
Block a user