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:
Martin Gräßlin 2014-06-04 09:09:37 +02:00
parent c4caf705da
commit 76b05f241b

View file

@ -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;