const int OBSCURED = 2; // 2: Fully Obscured
const int UNOBSCURED = 0;
Pol_Visibility *pv;
+#ifdef HAVE_WAYLAND_ONLY
+ E_Comp_Wl_Client_Data *cdata;
+#endif
if (!zone) return;
if (ec->zone != zone) continue;
/* check e_client and skip e_clients not visible */
if (!ec->frame) continue;
+#ifdef HAVE_WAYLAND_ONLY
+ /* if ec is subsurface, skip this */
+ cdata = (E_Comp_Wl_Client_Data *)ec->comp_data;
+ if (cdata && cdata->sub.data) continue;
+#endif
if (!evas_object_visible_get(ec->frame))
{
if (!ec->iconic) continue;