Eio_Monitor_Win32_Watcher *watcher_parent;
};
-static Eina_Bool _eio_monitor_win32_native = EINA_FALSE;
-
static Eina_Bool
_eio_monitor_win32_cb(void *data, Ecore_Win32_Handler *wh EINA_UNUSED)
{
{
if (!w) return;
+ ecore_main_win32_handler_del(w->h);
eina_stringshare_del(w->file);
eina_stringshare_del(w->current);
CloseHandle(w->event);
if (!backend->watcher_parent)
goto free_backend_dir;
- _eio_monitor_win32_native = EINA_TRUE;
+ monitor->fallback = EINA_FALSE;
monitor->backend = backend;
eina_stringshare_del(current);
free(backend);
fallback:
INF("falling back to poll monitoring");
- _eio_monitor_win32_native = EINA_FALSE;
+ monitor->fallback = EINA_TRUE;
eio_monitor_fallback_add(monitor);
}
void eio_monitor_backend_del(Eio_Monitor *monitor)
{
- if (!_eio_monitor_win32_native)
+ if (monitor->fallback)
{
eio_monitor_fallback_del(monitor);
return;