BuildRequires: pkgconfig(mm-player)
BuildRequires: pkgconfig(utilX)
BuildRequires: pkgconfig(x11)
-BuildRequires: pkgconfig(vconf)
BuildRequires: pkgconfig(application-common)
BuildRequires: gettext-devel
BuildRequires: edje-bin
#include <Elementary.h>
#include <Eina.h>
#include <Ecore.h>
-#include <vconf.h>
#include "timeout_handler.h"
#include "dbg.h"
#define NUM_EVENT_HANDLERS 7
-#define VCONF_CURSOR_VISIBILITY_KEY "memory/window_system/input/cursor_visible"
struct timeout_handler {
Eina_List *eventhandler_list;
void *timeout_data;
double timeout;
- int cursor;
};
static Eina_Bool _timer_cb(void *data)
static Eina_Bool _event_occured(void *data, int type, void *event)
{
struct timeout_handler *handle;
- int visible;
if (!data)
return ECORE_CALLBACK_PASS_ON;
handle = (timeout_handler *)data;
- vconf_get_int(VCONF_CURSOR_VISIBILITY_KEY, &visible);
- if (handle->cursor && !visible) {
- handle->cursor = visible;
- return ECORE_CALLBACK_PASS_ON;
- }
-
- handle->cursor = visible;
-
if (type == ECORE_EVENT_KEY_UP ||
type == ECORE_EVENT_MOUSE_MOVE)
handle->event_cb(handle->event_data, type, event);