Avoid roundtrip in EWindowGetPixmap().
SVN revision: 45712
This commit is contained in:
parent
879ffde9c8
commit
0f0f969f0d
8
src/x.c
8
src/x.c
|
@ -1941,13 +1941,7 @@ EGetTimestamp(void)
|
||||||
Pixmap
|
Pixmap
|
||||||
EWindowGetPixmap(const Win win)
|
EWindowGetPixmap(const Win win)
|
||||||
{
|
{
|
||||||
XWindowAttributes xwa;
|
return (win->mapped) ? XCompositeNameWindowPixmap(disp, win->xwin) : None;
|
||||||
|
|
||||||
if (XGetWindowAttributes(disp, win->xwin, &xwa) == 0 ||
|
|
||||||
xwa.map_state == IsUnmapped)
|
|
||||||
return None;
|
|
||||||
|
|
||||||
return XCompositeNameWindowPixmap(disp, WinGetXwin(win));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue