wl_drm: show default cursor when the pointer device is added 62/40362/1
authorMinJeong Kim <minjjj.kim@samsung.com>
Wed, 3 Jun 2015 02:50:03 +0000 (11:50 +0900)
committerMinJeong Kim <minjjj.kim@samsung.com>
Wed, 3 Jun 2015 04:13:50 +0000 (13:13 +0900)
As a pointer device added, cursor object gets be set by "cursor_set" request
but "cursor_set" will nerver come if there is no apps. this patch
show default cursor first if the pointer device attached.

Change-Id: Ief65184a2bf8abd99a1b08a80fc793e0c3b2f948
Signed-off-by: MinJeong Kim <minjjj.kim@samsung.com>
src/modules/wl_drm/e_mod_main.c

index 376d470bb645a480888680b18699e0c1065d2012..5f59a2999f4ca08dc0f3af0b3469c9091750c1cd 100644 (file)
@@ -76,11 +76,13 @@ static Eina_Bool
 _e_mod_drm_cb_input_device_add(void *data, int type, void *event)
 {
    Ecore_Drm_Event_Input_Device_Add *e;
+   E_Comp *comp = data;
 
    if (!(e = event)) goto end;
 
    if (e->caps & EVDEV_SEAT_POINTER)
      {
+        e_pointer_object_set(comp->pointer, NULL, 0, 0);
         e_comp_wl_input_pointer_enabled_set(EINA_TRUE);
      }