Xnest: replace XChangeWindowAttributes() by xcb_change_window_attributes()
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
6d12f08fb2
commit
70acda3fba
|
@ -273,7 +273,7 @@ xnestConfigureWindow(WindowPtr pWin, unsigned int mask)
|
||||||
Bool
|
Bool
|
||||||
xnestChangeWindowAttributes(WindowPtr pWin, unsigned long mask)
|
xnestChangeWindowAttributes(WindowPtr pWin, unsigned long mask)
|
||||||
{
|
{
|
||||||
XSetWindowAttributes attributes;
|
XnSetWindowAttr attributes;
|
||||||
|
|
||||||
if (mask & XCB_CW_BACK_PIXMAP)
|
if (mask & XCB_CW_BACK_PIXMAP)
|
||||||
switch (pWin->backgroundState) {
|
switch (pWin->backgroundState) {
|
||||||
|
@ -356,10 +356,14 @@ xnestChangeWindowAttributes(WindowPtr pWin, unsigned long mask)
|
||||||
if (mask & XCB_CW_CURSOR) /* this is handled in cursor code */
|
if (mask & XCB_CW_CURSOR) /* this is handled in cursor code */
|
||||||
mask &= ~XCB_CW_CURSOR;
|
mask &= ~XCB_CW_CURSOR;
|
||||||
|
|
||||||
if (mask)
|
if (mask) {
|
||||||
XChangeWindowAttributes(xnestDisplay, xnestWindow(pWin),
|
uint32_t values[32];
|
||||||
mask, &attributes);
|
xnest_encode_window_attr(attributes, mask, values);
|
||||||
|
xcb_change_window_attributes(xnestUpstreamInfo.conn,
|
||||||
|
xnestWindow(pWin),
|
||||||
|
mask,
|
||||||
|
values);
|
||||||
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue