summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2015-11-17 15:54:34 -0500
committerChris Michael <cp.michael@samsung.com>2015-11-17 15:54:34 -0500
commit0210051a40beb2d53789ced8b6c97671ea99ef2b (patch)
treea2f6c7c4f6835d8353d6a39fa553064d1560d208 /src/lib/ecore_drm
parentd34ad18f3081dc4f887dd869639fd3e72d3bbc11 (diff)
ecore-drm: Don't send mouse_move event too early
We cannot be sending an ecore_event for mouse move here as it is too early in the startup process for that too happen. Raising the event here never gets caught because the ecore_evas has not yet registered for ecore_input listening. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/lib/ecore_drm')
-rw-r--r--src/lib/ecore_drm/ecore_drm_evdev.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/lib/ecore_drm/ecore_drm_evdev.c b/src/lib/ecore_drm/ecore_drm_evdev.c
index fe383024d4..69b398f5c1 100644
--- a/src/lib/ecore_drm/ecore_drm_evdev.c
+++ b/src/lib/ecore_drm/ecore_drm_evdev.c
@@ -80,40 +80,8 @@ _device_output_set(Ecore_Drm_Evdev *edev)
80 if (libinput_device_has_capability(edev->device, 80 if (libinput_device_has_capability(edev->device,
81 LIBINPUT_DEVICE_CAP_POINTER)) 81 LIBINPUT_DEVICE_CAP_POINTER))
82 { 82 {
83 Ecore_Drm_Input *pointer_input;
84 Ecore_Event_Mouse_Move *ev;
85
86 edev->mouse.dx = edev->output->current_mode->width / 2; 83 edev->mouse.dx = edev->output->current_mode->width / 2;
87 edev->mouse.dy = edev->output->current_mode->height / 2; 84 edev->mouse.dy = edev->output->current_mode->height / 2;
88
89 /* send a fake motion event to let other know the initial pos of mouse */
90 if (!(pointer_input = edev->seat->input)) return;
91 if (!(ev = calloc(1, sizeof(Ecore_Event_Mouse_Move)))) return;
92
93 ev->window = (Ecore_Window)pointer_input->dev->window;
94 ev->event_window = (Ecore_Window)pointer_input->dev->window;
95 ev->root_window = (Ecore_Window)pointer_input->dev->window;
96
97 _device_modifiers_update(edev);
98 ev->modifiers = edev->xkb.modifiers;
99 ev->same_screen = 1;
100
101 ev->x = edev->mouse.dx;
102 ev->y = edev->mouse.dy;
103 ev->root.x = ev->x;
104 ev->root.y = ev->y;
105 ev->multi.device = edev->mt_slot;
106 ev->multi.radius = 1;
107 ev->multi.radius_x = 1;
108 ev->multi.radius_y = 1;
109 ev->multi.pressure = 1.0;
110 ev->multi.angle = 0.0;
111 ev->multi.x = ev->x;
112 ev->multi.y = ev->y;
113 ev->multi.root.x = ev->x;
114 ev->multi.root.y = ev->y;
115
116 ecore_event_add(ECORE_EVENT_MOUSE_MOVE, ev, NULL, NULL);
117 } 85 }
118} 86}
119 87