forked from e16/e16
1
0
Fork 0

Avoid roundtrip in EWindowGetPixmap().

SVN revision: 45712
This commit is contained in:
Kim Woelders 2010-01-29 19:44:50 +00:00
parent 879ffde9c8
commit 0f0f969f0d
1 changed files with 1 additions and 7 deletions

View File

@ -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;
}
/*