Only reparent qwidget based deco to a QWindow wrapper
This partially reverts 8543033d59
which
caused major issues with QWindow based decorations.
BUG: 335762
This commit is contained in:
parent
c4caf705da
commit
76b05f241b
1 changed files with 2 additions and 1 deletions
|
@ -555,10 +555,11 @@ void Client::createDecoration(const QRect& oldgeom)
|
|||
decoration->init();
|
||||
if (decoration->widget()) {
|
||||
decoration->widget()->installEventFilter(this);
|
||||
decoration->window()->setParent(m_frameWrapper.data());
|
||||
} else if (decoration->window()) {
|
||||
decoration->window()->installEventFilter(this);
|
||||
xcb_reparent_window(connection(), decoration->window()->winId(), frameId(), 0, 0);
|
||||
}
|
||||
decoration->window()->setParent(m_frameWrapper.data());
|
||||
decoration->window()->lower();
|
||||
decoration->borders(border_left, border_right, border_top, border_bottom);
|
||||
padding_left = padding_right = padding_top = padding_bottom = 0;
|
||||
|
|
Loading…
Reference in a new issue