<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi,</p>
<p>Is there a way for an xdg_toplevel to know which parts of its
surface are off-screen or occluded by other surfaces? i.e. similar
to the 'suspended' state, but with more detailed information.</p>
<p>The motivation for this is to be able to improve animated popups
that aren't implemented as native xdg_popups, i.e. just rendered
inside the toplevel surface by the application (because xdg_popups
don't like animations). For xdg_popups the compositor ensures they
aren't positioned off-screen, and it would be great to be able to
ensure that (to some extent, at least, as these popups can't be
positioned outside the toplevel surface) for this other kind of
popup as well.</p>
<p>Best regards<br>
Max<br>
</p>
</body>
</html>