Fix supportWindow creation

xcb_create_window seems noop on 0x0 windows

BUG: 320271
FIXED-IN: 4.11
REVIEW: 110657
icc-effect-5.14.5
Thomas Lübking 2013-05-27 20:05:29 +02:00
parent 1664a143ab
commit 3a3579d6d4
1 changed files with 1 additions and 2 deletions

View File

@ -41,9 +41,8 @@ RootInfo *RootInfo::create()
xcb_window_t supportWindow = xcb_generate_id(connection());
const uint32_t values[] = {true};
xcb_create_window(connection(), XCB_COPY_FROM_PARENT, supportWindow, KWin::rootWindow(),
0, 0, 0, 0, 0, XCB_COPY_FROM_PARENT,
0, 0, 1, 1, 0, XCB_COPY_FROM_PARENT,
XCB_COPY_FROM_PARENT, XCB_CW_OVERRIDE_REDIRECT, values);
const uint32_t lowerValues[] = { XCB_STACK_MODE_BELOW }; // See usage in layers.cpp
// we need to do the lower window with a roundtrip, otherwise NETRootInfo is not functioning
QScopedPointer<xcb_generic_error_t> error(xcb_request_check(connection(),