Revert "Avoid roundtrip in EWindowGetPixmap()."
This potentially caused many X errors in certain situations (e.g. certain opera tooltips). SVN revision: 47171
This commit is contained in:
parent
4dfed1b5c7
commit
950ac55be9
8
src/x.c
8
src/x.c
|
@ -1939,7 +1939,13 @@ EGetTimestamp(void)
|
|||
Pixmap
|
||||
EWindowGetPixmap(const Win win)
|
||||
{
|
||||
return (win->mapped) ? XCompositeNameWindowPixmap(disp, win->xwin) : None;
|
||||
XWindowAttributes xwa;
|
||||
|
||||
if (XGetWindowAttributes(disp, win->xwin, &xwa) == 0 ||
|
||||
xwa.map_state == IsUnmapped)
|
||||
return None;
|
||||
|
||||
return XCompositeNameWindowPixmap(disp, WinGetXwin(win));
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue