diff options
Diffstat (limited to '')
-rw-r--r-- | src/lib/ecore_drm/ecore_drm_evdev.c | 32 |
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 | ||