e_service_volume_region_set(type, angle, tzsh_reg->tiler);
}
+static void
+_tzsh_srv_indicator_cb_resource_destroy(struct wl_resource *resource)
+{
+ if (_indicator_srv_res == resource)
+ _indicator_srv_res = NULL;
+}
+
static void
_tzsh_srv_indicator_cb_destroy(struct wl_client *client EINA_UNUSED, struct wl_resource *resource)
{
}
_indicator_srv_res = res;
- wl_resource_set_implementation(res, &_tzsh_srv_indicator_iface, tzsh_srv, NULL);
+ wl_resource_set_implementation(res, &_tzsh_srv_indicator_iface, tzsh_srv,
+ _tzsh_srv_indicator_cb_resource_destroy);
}
static void
wl_resource_set_implementation(res, &_tzsh_srv_scrsaver_iface, tzsh_srv, NULL);
}
+static void
+_tzsh_srv_scrsaver_mng_cb_resource_destroy(struct wl_resource *resource)
+{
+ if (_scrsaver_mng_res == resource)
+ {
+ _scrsaver_mng_res = NULL;
+ e_screensaver_disable();
+ }
+}
+
static void
_tzsh_srv_scrsaver_mng_cb_destroy(struct wl_client *client EINA_UNUSED, struct wl_resource *resource)
{
_scrsaver_mng_res = res;
- wl_resource_set_implementation(res, &_tzsh_srv_scrsaver_mng_iface, tzsh_srv, NULL);
+ wl_resource_set_implementation(res, &_tzsh_srv_scrsaver_mng_iface, tzsh_srv,
+ _tzsh_srv_scrsaver_mng_cb_resource_destroy);
}
static void