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
|
||||
EWindowGetPixmap(const Win win)
|
||||
{
|
||||
XWindowAttributes xwa;
|
||||
|
||||
if (XGetWindowAttributes(disp, win->xwin, &xwa) == 0 ||
|
||||
xwa.map_state == IsUnmapped)
|
||||
return None;
|
||||
|
||||
return XCompositeNameWindowPixmap(disp, WinGetXwin(win));
|
||||
return (win->mapped) ? XCompositeNameWindowPixmap(disp, win->xwin) : None;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue